VSCode Shortcuts: The open source VSCode cheat sheet

Discover the best Visual Studio Code shortcuts and hotkeys to speed up your coding workflow. Vote on and submit your favourite shortcuts, as well as discover new shortcuts shared by the community, so you can become a vscode wizard 🪄.

Device
Sort
17

Jump to matching bracket

Shift\
11

Remove unused imports

Remove unused imports

O
6

Fold all

folds all regions in the editor.

K0
5

Copy line above/below

Copies the selected line above/below

ShiftUp/down
5

Cut line

Cut the current line when nothing is selected

X
4

Copy line

Copy the current line when nothing is selected

C
4

Insert cursor above/below

Up/down
3

Comment line

Changes the whole line to a comment

/
3

Select current line

Selects the whole current line without needing to use the arrow keys

L
3

Fold all block comments

Folds all regions that start with a block comment token.

K/
2

Unfold recursively

Unfolds the region at the cursor and all regions inside that region.

K]
2

Unfolds region

Unfold the innermost collapsed region at the cursor

]
2

Move line Up/Down

Move the current line up or down

Up/Down
1

Fold recursively

Folds the innermost uncollapsed region at the cursor and all regions inside that region.

K[
1

Indent line

Indents the line without needing to move the cursor to the start of the line

]
0

Insert cursor at end of each line selected

ShiftI
0

Folds region

Fold the innermost uncollapsed region at the cursor

[
0

Fold level

Folds all regions of level X, except the region at the current cursor position.

K2
-1

Outdent line

Outdents the line without needing to move the cursor to the start of the line

[
-3

Rerrrerf

Submit a new VSCode Shortcut

Have a shortcut that you love that's not listed on our website? You can submit it to our database and share it with the community.

Built with 💙 by Alex