General
⇧⌘P, F1
Show Command Palette
P
Quick Open, Go to File…
⇧⌘N
New window/instance
W
Close window/instance
,
User Settings
K S
Keyboard Shortcuts
Basic editing
X
Cut line (empty selection)
C
Copy line (empty selection)
/
Move line down/up
⇧⌥↓ / ⇧⌥
Copy line down/up
⇧⌘K
Delete line
Enter / ⇧⌘Enter
Insert line below/above
⇧⌘\
Jump to matching bracket
] / [
Indent/outdent line
Home / End
Go to beginning/end of line
/
Go to beginning/end of file
PgUp / PgDn
Scroll line up/down
PgUp /PgDn
Scroll page up/down
⌥⌘[ / ⌥⌘]
Fold/unfold region
K [ / K ]
Fold/unfold all subregions
K 0 / K J
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
Undo last cursor operation
⇧⌥I
Insert cursor at end of each line selected
L
Select current line
⇧⌘L
Select all occurrences of current selection
F2
Select all occurrences of current word
⌃⇧⌘ /
Expand / shrink selection
⇧⌥ + drag mouse
Column (box) selection
⇧⌥⌘ /
Column (box) selection up/down
⇧⌥⌘ /
Column (box) selection left/right
⇧⌥⌘PgUp
Column (box) selection page up
⇧⌥⌘PgDn
Column (box) selection page down
Search and replace
F
⌥⌘F
G / ⇧⌘G
Enter
D
K D
Rich languages editing
Space, I
⇧⌘Space
⇧⌥F
K F
F12
F12
K F12
.
F12
F2
K X
K M
Navigation
T
G
P
⇧⌘O
⇧⌘M
F8 / F8
⌃⇧Tab
- / ⌃⇧-
⌃⇧M
Editor management
W
K F
\
1 / 2 / 3
K / K
K ⇧⌘ / K ⇧⌘
K ← / K →
File management
N
O
S
⇧⌘S
⌥⌘S
W
K W
⇧⌘T
K Enter
Tab / ⌃⇧Tab
K P
K R
K O
Display
⌃⌘F
⌥⌘0
= / ⇧⌘-
B
⇧⌘E
⇧⌘F
⌃⇧G
⇧⌘D
⇧⌘X
⇧⌘H
⇧⌘J
⇧⌘U
⇧⌘V
K V
K Z
Debug
F9
F5
F11 / F11
F10
F5
K I
Integrated terminal
`
Show integrated terminal
⌃⇧`
Create new terminal
C
Copy selection
/
Scroll up/down
PgUp / PgDn
Scroll page up/down
Home / End
Scroll to top/bottom
Other operating systems’ keyboard shortcuts and additional
unassigned shortcuts available at aka.ms/vscodekeybindings
Keyboard shortcuts for macOS