Free Copilot.. Which IDEs shall I use

Earlier this month, Microsoft announced free GitLab Copilot. You get 2000 autocompletes a month and 50 chat messages. The idea is clearly that you’ll start relying on it and then pay.

I installed and configured in both VS Code and IntelliJ. Setup was easy. I had to authorize the IDE by entering a code on github.com that the IDE gave me. It also gave me the link to enter it so pretty easy.

I also installed it on PyCharm and quickly uninstalled it. Copilot was being too helpful and I need to practice more typing the idioms as I get better at Python. (This is my fifth time learning Python. Every time I get decent at it, I don’t use it for a long time and forget. Maybe this time it’ll take!)

I do use AI periodically to ask how to improve the Python code I write (at home on personal stuff). But I can do that outside my IDE.

I like that Microsoft is doing this. They’ve had a free trial of CoPilot for a long time, but that is time limited. I like that this one is usage limited. So if you don’t use it much, you have it when you need it and still free.

Surrounding with Double Quotes in IntelliJ

IntellIJ has a feature where you can surround a String with double quotes by simply pressing “. Here’s how:

  1. Select the text you want in quotes
  2. Press “

There’s a video showing the feature.

However, this may appear not to work on your machine. There are two possible causes

Cause #1: The feature is off

Go into your IDE settings and choose

  1. Editor
  2. General
  3. Smart Keys
  4. Check “Surround selection on typing quote or brace”

Cause #2: Keyboard mapping

I’m on a Mac and the feature worked for single quotes and not double quotes. How odd. It’s clearly not cause #1 since it works for single quotes.

I then tried on my laptop keyboard and it worked with double quotes. So clearly the problem was my keyboard! Somehow it was being treated as an international keyboard instead of US. I remapped by going to “Keyboard” on Mac system settings and choosing “setup keyboard.”

Once I did this, the feature worked consistently on both keyboards.

Makes me wonder how people with non-US keyboards are supposed to use the feature!