Print-friendly
keyboard shortcuts
for all your favorite Mac apps

Visual Studio Code

General

Basic Editing

X
Cut line (empty selection)
C
Copy line (empty selection)
or
Move line down/up
or
Copy line down/up
K
Delete line
or
Insert line below/above
\
Jump to matching bracket
]
or
[
Indent/outdent line
or
Go to beginning/end of line
or
Go to beginning/end of file
or
Scroll line up/down
or
Scroll page up/down
[
or
]
Fold/unfold region
K
[
or
K
]
Fold/unfold all subregions
K
0
or
K
K
Fold/unfold all regions
K
C
Add line comment
K
U
Remove line comment
/
Toggle line comment
A
Toggle block comment
Z
Toggle word wrap

Multi-Cursor and Selection

+
click
Insert cursor
Insert cursor above
Insert cursor below
U
Under last cursor operation
I
Insert cursor at end of each line selected
I
Select current line
L
Select all occurrences of current selection
F2
Select all occurrences of current word
or
Expand/shrink selection
drag
Column (box) selection
or
Column (box) selection up/down
or
Column (box) selection left/right
Column (box) selection page up
Column (box) selection page down

Search and Replace

F
Find
F
Replace
G
or
G
Find next/previous
Select all occurrences of Find match
D
Add selection to next Find match
K
D
Move last selection to next Find match

Rich Languages Editing

Trigger suggestion
Trigger parameter hints
F
Format document
K
F
Format selection
F12
Go to definition
F12
Peek definition
K
F12
Open Definition to the side
.
Quick fix
F12
Show references
F2
Rename symbol
K
X
Trim training whitespace
K
M
Change file language

Navigation

T
Show all symbols
G
Go to Line...
P
Go to File...
O
Go to Symbol...
M
Show Problems panel
F8
or
F8
Go to next/previous error or warning
Navigate editor group history
-
or
-
Go back/forward
M
Toggle tab moves focus

Editor Management

W
Close editor
K
F
Close folder
\
Split editor
1
or
2
or
3
Focus into 1st, 2nd, or 3rd editor group
K
or
K
Focus into previous/next editor group
K
or
K
Move editor left/right
K
or
K
Move active editor group

File Management

N
New file
O
Open file...
S
Save
S
Save as...
S
Save all
W
Close
K
W
Close all
T
Reopen closed editor
K
Keep preview mode editor open
or
Open next/previous
K
P
Copy path of active file
K
R
Reveal active file in Explorer
K
O
Show active file in new window/instance

Display

F
Toggle full screen
1
Toggle editor layout (horizontal/vertical)
=
or
-
Zoom in/out
B
Toggle Sidebar visibility
E
Show Explorer/Toggle focus
F
Show Search
G
Show Source Control
D
Show Debug
X
Show Extensions
H
Replace in files
J
Toggle Search details
U
Show Output panel
V
Open Markdown preview
K
V
Open Markdown preview to the side
K
Z
Zen Mode (⎋ ⎋) to exit

Debug

F9
Toggle breakpoint
F5
Start/Continue
F11
or
F11
Step into/out
F10
Step over
F5
Stop
K
I
Show hover

Integrated Terminal

`
Show integrated terminal
`
Create new terminal
C
Copy selection
or
Scroll up/down
or
Scroll page up/down
or
Scroll to top/bottom