Shortcuts and Keymaps ๐ปยถ
VS Code is loaded with customization options and shortcuts. Default shortcuts can vary between different operating systems. However, you can always change those according to your likings. You can even adopt other editorsโ keybindings into VS Code.
Changing the Default Keymapsยถ
Open the command palette by pressing
ctrl+shift+p
.Type
Keyboard shortcuts
.Select
Preferences: Open Keyboard Shortcuts
. This will show you a list of all the keyboard shortcuts available to you.You can hover over a keybinding and a pencil icon should pop up.
Click on the pencil icon to add your preferred key combination and press
enter
.
Adopting Keymaps from Other Editorsยถ
If you are migrating from any other editors and you want to use you previous keymaps, you can do that too.
Go to the extension panel.
Type
<yourdesirededitor> keymaps
.Select and install. This should replace the default keymap with your desired one.
A Few Important Shortcuts (On Linux)ยถ
Although the abundance of shorcuts can be a plus,it can be intimidating for someone whoโs just starting out. Hereโs a short list of a few important shortcuts that appear more frequently.
ctrl+~
: Opens the integrated terminalctrl+N
: Opens a new empty filectrl+Shift+P
: Opens the command palettectrl+,
: Opens settingsctrl+B
: Toggles between shrinked and extended side panelF11
: Full screen modectrl+alt+N
: Running python codeF5
: Running python code in debugging mode