
Visual Code is a popular source code editor and the first to accommodate cross-platform IDE applications. It offers several keyboard shortcuts to help programmers like you maximize efficiency. Read on to learn some of the most useful keyboard shortcuts to help boost your productivity.
VS Code Keyboard Shortcuts for Mac
The following VS Code keyboard shortcuts are designed to help you save time when coding on your Mac.

Quick Open
Use the shortcut “CMD+P” to open your files quickly. Then scroll through your files using the down and up button
arrow keys. Hit the right arrow key after finding the file you want to open. Whenever you open new files, the open files will be moved to the screen background.
Command Palette
Using the Command Palette, you can conveniently access the file commands you want to match your current encoding context. You will only need to enter a keyword related to it, instead of searching through the menus.
Use the shortcut “CMD + SHIFT + P” to access the Command Palette.
Toggle sidebar
You can toggle the sidebar with the shortcut “CMD+B” to toggle full width or hide the editor view.
multiple selection cursor
If you need to change all of your H3 tags to H4, for example, you don’t need to change each instance manually. You can use the multi-select feature to select all instances of what you want to change and change them all at once. To use the shortcut, just select one of the tags and then use “CMD + D”.
This will find all instances of the selected tag and display an active cursor for further action.
comment code block
Comment code is a must and is done frequently. Type “SHIFT+OPT+A” to comment out the lines of code.
copy line
When programming, you may need to copy lines of code to paste elsewhere in your project. Use “OPT + SHIFT + UP” button
or
“OPT + SHIFT + DOWN”
shortcuts to do this quickly.
show all symbols
If you need to see all functions, files, classes, etc., use the “CMD+T”
shortcut. This will launch a reference view displaying the symbols in your code. This shortcut is similar to global localization, but it works with symbols.
VS Code Keyboard Shortcuts for Windows

Use the following visual code shortcuts in Windows to help reduce the time spent on different menus to access features.
Quick Open
Use the shortcut “CTRL + P” as a quick way to open files. Then use the up and down arrows to find
the file(s) you want and press the right arrow key once you find it. When opening new files, the open files will be moved to the screen background.
Command Palette
Use “CTRL + SHIFT + P”
shortcut to launch the Command Palette. The Command Palette is a convenient way to access file commands relevant to the current context. Once the Command Palette is open, you only need to type in the keyword related to the command you are looking for, saving you time looking through the menus.
Toggle sidebar
Switch between full width or hide editor view by toggling the sidebar. Use the shortcut “CTRL + B” to do this.
multiple selection cursor
If, for example, you need to change all your tags from H2 to H3, you can use the multi-select feature to change all instances at once. On Windows, select one of the tags you want to change and type “CTRL+D”.
VS finds all instances of the selected tag and displays the active cursor for further action.
comment code block
Commenting out blocks of code is a necessity and one of the most common actions performed while coding. For a multi-line comment, use “SHIFT+ALT+A”.
For a single line, it is
“CTRL+K+C.”
copy line
The option to move lines of code by copying and pasting is another common action. Use the “SHIFT + ALT + UP” button
or “SHIFT” + ALT + DOWN”
shortcuts to do this.
show all symbols
To start a reference view displaying all the symbols in your code, i.e. functions, classes, files, etc., use the “CTRL + T”
shortcut. This shortcut is like the global localization feature for symbols.
VS Code Keyboard Shortcuts for Linux

If you’re coding from a Linux computer, consider using these shortcuts for speed and efficiency.
Quick Open
Type “CTRL+P” for quick access to your files.
Then use the up and down arrow keys to navigate through them. Press the right arrow key after finding the file you want to open. Your most recent files will be brought to the front of the screen, while previously opened files will be moved to the back.
Command Palette
To launch the Command Palette, use the “CTRL + SHIFT + P”
shortcut. Once opened, you can access the file commands relevant to your current encoding context. You will only need to enter a keyword related to the desired command.
Toggle sidebar
You can toggle the sidebar using the “CTRL+B”
keyboard shortcut to switch between full-width view or hide editor.
multiple selection cursor
If you need to replace all your tags from one type to another, you can use the multi-select feature to change all instances at once. Using Linux, select the tag you want to change and use the “CTRL + D”
shortcut. All instances of the selected tag will be found and highlighted; then the active cursor will be displayed, awaiting further action.
comment code block
Comment blocks are another essential part of coding; therefore, one of the most common actions performed. To comment out a block of code, use the “SHIFT + ALT + A”
shortcut and for a single line use “CTRL+K+C”.
copy line
To move lines of code around your program, use the “SHIFT + ALT + UP”
or “SHIFT” + ALT + DOWN”
hotkeys.
show all symbols
To open a reference view with all the symbols in your code, i.e. classes, functions, files, etc., use the “CTRL + T”
shortcut. This shortcut is like the global localization feature for symbols.
Shortcuts Every Developer Should Know
Programmers use Visual Studio Code to develop business or personal applications. Coding is brain-intensive and requires focus and attention to detail. One of the ways VS helps programmers save time and, in turn, increase their productivity is through shortcuts. VS has set up shortcuts to let you access and use the most common features of the screen you are currently working on.
What shortcuts do you find most useful? Share your thoughts in the comments section below on how effective you think Visual Studio is at encouraging productivity.