VSCode Shortcuts

D
3 min readMar 2, 2024
Photo by Mohammad Rahmani on Unsplash

A good rule of thumb to being an efficient programmer is trying to be one with the tool you are using. For most people one of the most popular IDEs out there at the moment is VSCode.

In order to supercharge your VSCode usage here are some shortcuts that go a long way.

Multiple cursors

In order to enable multiple cursors in VSCode, press “alt” + “shift” + “down/up” or “option” + “command” + “down/up” on a MAC. This is especially useful for writing duplicated code such as switch statements for example.

multiple cursors

Go to a specific line

This works wonder when trying to fix linting errors or compiling errors. If the compiler tells you there is a problem in line 7, then hitting “ctrl” + “p” or “command” + “p”, followed by “:” and the line number allows you to quickly head to that line.

Go to a file

This is similar to the one above, but instead of adding a colon at the end simply type the file name. “ctrl” + “p” or “command” + “p”, followed by the file name that you would like.

Search through all files

--

--

D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!