There are some shortcuts that are not exclusive to Visual Studio Code. I decided to add them because they are a positive addition to the list. They are marked with an asterisk
*
: Non-exclusive VS Code shortcut.#
: Needs to be configured by the user using theKeyboard Shortcuts
option.
COMMANDS | WINDOWS | MAC |
---|---|---|
Show commands list | Ctrl + Shift + P | ⌘ + Shift + P |
Open settings | Ctrl + , | ⌘ + , |
Delete line | Ctrl + Shift + K | ⌘ + Shift + K |
Copy line | Ctrl + C (without selecting anything) | ⌥ + ↑/↓ (without selecting anything) |
Cut line | Ctrl + X (without selecting anything) | ⌥ + X/kbd> (without selecting anything) |
Comment line/block | Ctrl + K, release K and then press C | ⌥ + K, release K and then press C |
Move line | Alt + ↑/↓ | ⌥ + ↑/↓ |
Clone line | Alt + Shift + ↑/↓ | ⌥ + Shift + ↑/↓ |
New line without having to go to the end of the previous line * |
Ctrl + Enter | ⌘ + Enter |
COMMANDS | WINDOWS | MAC |
---|---|---|
Multiple cursors | Ctrl + Alt + ↑/↓ | ⌘ + ⌥ + ↑/↓ |
Exit multiple cursors mode | Esc | Esc |
Create individual multiple cursors | Alt | Left mouse click |
COMMANDS | WINDOWS | MAC |
---|---|---|
Delete word * |
Ctrl + Backspace | ⌥ + Backspace |
Wrap individual lines with abbreviation | Ctrl + Shift + P and then search for Wrap individual lines with abbreviation | ⌘ + Shift + P and then search for Wrap individual lines with abbreviation |
COMMANDS | WINDOWS | MAC |
---|---|---|
Go to the next occurence of word | Ctrl + D | ⌘ + D |
Go to specific line | Ctrl + G | Ctrl + G |
Go to symbol in file | Ctrl + Shift + O | Ctrl + Shift + O |
Search | Ctrl + F | ⌘ + O |
Advanced search | Ctrl + Shift + F | ⌘ + Shift + F |
COMMANDS | WINDOWS | MAC |
---|---|---|
Capitalize selection # |
Ctrl + Shift + U | ⌘ + Shift + U |
To lowercase selection # |
Ctrl + Shift + L | Ctrl + Shift + L |
COMMANDS | WINDOWS | MAC |
---|---|---|
Close file window | Ctrl + W | Ctrl + W |
Close all file windows | Ctrl + K + W | Ctrl + K + W |
Change file window | Ctrl + Tab | Ctrl + Tab |
Toggle navigation bar | Ctrl + B | ⌘ + B |
DESCRIPTION | SHORTCUT | EXAMPLE |
---|---|---|
Create multiple tags at once | [TAG]*[NUMBER OF TAGS] | li*4 |
Create multiple nested tags at once | [TAG]*[NUMBER OF TAGS] [CSS SELECTOR] [TAG]*[NUMBER OF TAGS] | li*4>p*8 |
Create multiple nested tags with numbered id | [TAG]*[NUMBER OF TAGS] [CSS SELECTOR] [TAG]#[ID]*[NUMBER OF TAGS] | ul>li#item$*5 |