Visual Studio Code, also commonly referred to as VS Code, is a source-code editor, including support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.

123

Shortcuts

98

Matching

show command palette
^
P
quick open, go to file
^
P
new window/instance
^
N
close window/instance
^
W
user settings
^
,
keyboard shortcuts
K
^
S
cut line (empty selection)
^
X
copy line (empty selection) / copy selection
^
C
move line up
move line down
copy line up
copy line down
delete line
^
K
insert line below
^
insert line above
^
jump to matching bracket
^
\
indent line
^
]
outdent line
^
[
go to beginning of line
go to end of line
go to beginning of file / scroll to top
^
go to end of file / scroll to bottom
^
scroll (line) up
^
scroll (line) down
^
scroll page up
scroll page down
fold (collapse) region
^
[
unfold (uncollapse) region
^
]
fold (collapse) all subregions
K
^
[
unfold (uncollapse) all subregions
K
^
]
fold (collapse) all regions
K
^
0
unfold (uncollapse) all regions
K
^
J
add line comment
K
^
C
remove line comment
K
^
U
toggle line comment
^
/
toggle block comment
A
toggle word wrap
Z
show all symbols
^
T
go to line
^
G
go to symbol
^
O
show problems panel
^
M
go to next error or warning
F8
go to previous error or warning
F8
navigate editor group history
^
go back
go forward
toggle tab moves focus
^
M
find
^
F
replace
^
H
find next
F3
find previous
F3
select all occurrences of find match
add selection to next find match
^
D
move last selection to next find match
K
^
D
toggle case-sensitive
C
toggle regex
R
toggle whole word
W
insert cursor above
^
insert cursor below
^
undo last cursor operation
^
U
insert cursor at end of each line selected
I
select current line
^
I
select all occurrences of current selection
^
L
select all occurrences of current word
^
F2
expand selection
shrink selection
column (box) selection
^
column (box) selection
^
column (box) selection
^
column (box) selection
^
column (box) selection page up
^
column (box) selection page down
^
trigger suggestion
^
trigger parameter hints
^
format document
F
format selection
K
^
F
go to definition
F12
peek definition
F12
quick fix
^
.
show references
F12
rename symbol
F2
trim trailing whitespace
K
^
X
close editor
^
F4
close editor
^
W
split editor
^
\
focus into 1st editor group
^
1
focus into 2nd editor group
^
2
focus into 3rd editor group
^
3
focus into previous editor group
K
^
focus into next editor group
K
^
move editor left
^
move editor right
^
new file
^
N
open file
^
O
save
^
S
save as
^
S
close all
K
^
W
reopen closed editor
^
T
open next
^
step into / toggle full screen
F11
toggle editor layout (horizontal/vertical)
0
zoom in
^
=
zoom out
^
+
toggle sidebar visibility
^
B
show explorer/toggle focus
^
E
show search
^
F
show source control
^
G
show debug
^
D
show extensions
^
X
toggle search details
^
J
show output panel
^
U
open markdown preview
^
V
toggle breakpoint
F9
start/continue
F5
stop
F5
step out
F11
step over
F10
show hover
K
^
I
show integrated terminal
^
`
create new terminal
^
`
paste into active terminal
^
V
scroll page up
scroll page down
Don't see your shortcut? Learn how to contribute.