Skip to main content

Master your IDE

Learn the shortcuts​

My tip is to try, once in a while, to pick an action that you often need (like deleting a whole line, selecting all the occurences of a word in the text, opening the Settings menu, etc.) and go search for the shortcut (either on the Internet or in the great VS Code shortcut menu (in File->Preferences->Keyboard Shortcuts)).
And if you don't like the default shortcut, you can always change it!

tip

Take the time to learn! Next time you say "Oh I wish I knew how to do xxx faster!" take the time to learn how to do it! It will save you a lot of time later down the road!
You can also discover shortcuts by watching other people write code. Take the time to ask them what the shortcut is, or go search for it!

Adapt the Settings​

Take the time to open the Settings menu of your IDE, and read through it! You will discover a lot of the hidden functionalities of your IDE, and you might be able to change its behaviour to better suit your needs! I often feel silly when I discover that the functionality I was dreaming of was actually available, waiting for me to enable it.

The same is true for the extensions you use: they can be configured in a lot of different ways, so check out their settings!
(For example, did you know that you can tell the CMake extension where your CMakeLists.txt is? It doesn't have to be at the root of your project!)

A few great actions​

Do you know how to do each of these? If not, try to learn them one by one:

Select multiple occurences of the same word​

Delete the current line​

Move the current line up​

Duplicate the current line​

Go to a file​

CTRL + P

Switch between a header file and the corresponding .cpp file​

Close all open tabs​

Save all open tabs​

Launch the project​

Build the project​

Debug the project​

Go to definition​

Find all occurences​

Search for a word in the current file​

Search for a word in the whole project​

Rename​

Putting multiple cursors at once​

Opening a new window​

Opening another project / folder​