Vs Code Cheat Sheet
Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux
and macOS.
by lam
󰅂General
Show
Command
Palette
Ctrl+Shif
t+P, F1
Quick Open,
Go to File… 
Ctrl+P
New
window/instance 
Ctrl+Shif
t+N
Close
window/instance 
Ctrl+Shif
t+W
Keyboard
Shortcuts
Ctrl+K Ct
rl+S
User Settings  Ctrl+,
󰅂Search and replace
Find Ctrl+F
Replace Ctrl+H
Find
next/previous 
F3 / Shif
t+F3
Select all
occurences of
Find match 
Alt+Enter
Add selection
to next Find
match 
Ctrl+D
Move last
selection to
next Find
match 
Ctrl+K Ct
rl+D
Toggle case-
sensitive /
regex / whole
word
Alt+C /
R / W
󰅂
Multi-cursor and
selection
Insert cursor  Alt+Click
Insert cursor
above /
below 
Ctrl+Alt
+ ↑ / ↓
Undo last
cursor
operation 
Ctrl+U
Insert cursor
at end of each
line selected 
Shift+Alt
+I
 Select
current line 
Ctrl+L
 Select all
occurrences
of current
selection
Ctrl+Shif
t+L
 Select all
occurrences
of current
word 
Ctrl+F2
 Expand
selection 
Shift+Alt
+→
 Shrink
selection 
Shift+Alt
+←
 Column (box)
selection 
Shift+Al
t + (dra
g mouse)
 Column (box)
selection 
Ctrl+Shif
t+Alt +
(arrow ke
y)
Column (box)
selection
page
Ctrl+Shif
t+Alt +Pg
Up/PgDn
󰅂File management
New File  Ctrl+N
Open File...  Ctrl+O
Save  Ctrl+S
Save As... Ctrl+Shif
t+S
Save All  Ctrl+K S
Close  Ctrl+F4
Close All  Ctrl+K Ct
rl+W
Reopen
closed editor
Ctrl+Shif
t+T
Enter Keep
preview
Ctrl+K
󰅂Display
Toggle full
screen 
F11
Toggle editor
layout
(horizontal/vertical) 
Shift+Alt
+0
Zoom in/out  Ctrl+ =
/ -
Toggle
Sidebar
visibility 
Ctrl+B
Show
Explorer /
Toggle focus 
Ctrl+Shif
t+E
Show Search  Ctrl+Shif
t+F
󰏪
󰅢
up/downmode editor
open 
Open next  Ctrl+Tab
Open
previous 
Ctrl+Shif
t+Tab
Copy path of
active le
Ctrl+K P
Reveal active
le in
Explorer 
Ctrl+K R
Show active
le in new
window/instance
Ctrl+K O
Show Source
Control 
Ctrl+Shif
t+G
Show Debug  Ctrl+Shif
t+D
Show
Extensions 
Ctrl+Shif
t+X
Replace in
les 
Ctrl+Shif
t+H
Toggle Search
details 
Ctrl+Shif
t+J
Show Output
panel 
Ctrl+Shif
t+U
Open
Markdown
preview 
Ctrl+Shif
t+V
Open
Markdown
preview to
the side 
Ctrl+K V
Zen Mode
(Esc Esc to
exit)
Ctrl+K Z
󰅂
Rich languages
editing
Trigger
suggestion 
Ctrl+Spac
e
Trigger
parameter
hints 
Ctrl+Shif
t+Space
Format
document 
Shift+Alt
+F
Format
selection 
Ctrl+K Ct
rl+F
Go to
De nition 
F12
Peek
De nition 
Alt+F12
Open
De nition to
the side 
Ctrl+K F1
2
Quick Fix  Ctrl+.
Show
References 
Shift+F1
2
Rename
Symbol 
F2
Trim trailing
whitespace 
Ctrl+K Ct
rl+X
Change le
language
Ctrl+K M
󰅂Editor management
Close editor  Ctrl+F4,
Ctrl+W
Close folder  Ctrl+K F
Split editor  Ctrl+
Focus into 1
st, 2nd or 3rd
editor group 
Ctrl+ 1
/ 2 / 3
Focus into
previous/next
editor group 
Ctrl+K Ct
rl+ ←/→
Move editor
left/right 
Ctrl+Shif
t+PgUp /
PgDn
Move active
editor group
Ctrl+K ←
/ →
󰅂Debug
Toggle
breakpoint 
F9
Start/Continue  F5
Stop Shift+F5
Step into/out  F11 / Shi
ft+F11
Step over  F10
Show hover Ctrl+K Ct
rl+I
󰅂Integrated terminal
Show
integrated
terminal 
Ctrl+`
Create new
terminal 
Ctrl+Shif
t+`
Copy
selection 
Ctrl+C
Paste into
active
terminal 
Ctrl+V
Scroll
up/down 
Ctrl+↑ /
↓
󰅂Navigation
Show all
Symbols 
Ctrl+T
Go to Line...  Ctrl+G
Go to File...  Ctrl+P
Go to
Symbol... 
Ctrl+Shif
t+O
Show Ctrl+Shif
󰅂Basic editing
Ctrl+X Cut
line (empty
selection) 
Ctrl+C Copy
󰏪
󰅢
Scroll page
up/down 
Shift+PgU
p / PgDn
Scroll to
top/bottom
Ctrl+Hom
e / End
Problems
panel 
t+M
Go to next
error or
warning 
F8
Go to
previous
error or
warning 
Shift+F8
Navigate
editor group
history 
Ctrl+Shif
t+Tab
Go back /
forward
Alt+ ← /
→
line (empty
selection) 
Move line
up/down 
Alt+ ↑ /
↓
Copy line
up/down 
Shift+Al
t + ↓ /
↑
Delete line  Ctrl+Shif
t+K
Insert line
below 
Ctrl+Ente
r
Insert line
above 
Ctrl+Shif
t+Enter
Jump to
matching
bracket 
Ctrl+Shif
t+
Indent/outdent
line 
Ctrl+] /
[
Go to
beginning/end
of line 
Home / En
d
Go to
beginning of
le 
Ctrl+Hom
e
Go to end of
le 
Ctrl+End
Scroll line
up/down 
Ctrl+↑ /
↓
Scroll page
up/down 
Alt+PgUp
/ PgDn
Fold
(collapse)
region 
Ctrl+Shif
t+[
Unfold
(uncollapse)
region 
Ctrl+Shif
t+]
Fold
(collapse) all
subregions 
Ctrl+K Ct
rl+[
Unfold
(uncollapse)
all
Ctrl+K Ct
rl+]
󰏪
󰅢
CheatSheetMaker.com SimpleCheatSheet.com
subregions 
Fold
(collapse) all
regions 
Ctrl+K Ct
rl+0
Unfold
(uncollapse)
all regions 
Ctrl+K Ct
rl+J
Add line
comment 
Ctrl+K Ct
rl+C
Remove line
comment 
Ctrl+K Ct
rl+U
Toggle line
comment 
Ctrl+/
Toggle block
comment 
Shift+Alt
+A
Toggle word
wrap
Alt+Z
󰏪
󰅢

VS Code cheat sheet

  • 1.
    Vs Code CheatSheet Visual Studio Code is a free source-code editor made by Microsoft for Windows, Linux and macOS. by lam 󰅂General Show Command Palette Ctrl+Shif t+P, F1 Quick Open, Go to File…  Ctrl+P New window/instance  Ctrl+Shif t+N Close window/instance  Ctrl+Shif t+W Keyboard Shortcuts Ctrl+K Ct rl+S User Settings  Ctrl+, 󰅂Search and replace Find Ctrl+F Replace Ctrl+H Find next/previous  F3 / Shif t+F3 Select all occurences of Find match  Alt+Enter Add selection to next Find match  Ctrl+D Move last selection to next Find match  Ctrl+K Ct rl+D Toggle case- sensitive / regex / whole word Alt+C / R / W 󰅂 Multi-cursor and selection Insert cursor  Alt+Click Insert cursor above / below  Ctrl+Alt + ↑ / ↓ Undo last cursor operation  Ctrl+U Insert cursor at end of each line selected  Shift+Alt +I  Select current line  Ctrl+L  Select all occurrences of current selection Ctrl+Shif t+L  Select all occurrences of current word  Ctrl+F2  Expand selection  Shift+Alt +→  Shrink selection  Shift+Alt +←  Column (box) selection  Shift+Al t + (dra g mouse)  Column (box) selection  Ctrl+Shif t+Alt + (arrow ke y) Column (box) selection page Ctrl+Shif t+Alt +Pg Up/PgDn 󰅂File management New File  Ctrl+N Open File...  Ctrl+O Save  Ctrl+S Save As... Ctrl+Shif t+S Save All  Ctrl+K S Close  Ctrl+F4 Close All  Ctrl+K Ct rl+W Reopen closed editor Ctrl+Shif t+T Enter Keep preview Ctrl+K 󰅂Display Toggle full screen  F11 Toggle editor layout (horizontal/vertical)  Shift+Alt +0 Zoom in/out  Ctrl+ = / - Toggle Sidebar visibility  Ctrl+B Show Explorer / Toggle focus  Ctrl+Shif t+E Show Search  Ctrl+Shif t+F 󰏪 󰅢
  • 2.
    up/downmode editor open  Open next Ctrl+Tab Open previous  Ctrl+Shif t+Tab Copy path of active le Ctrl+K P Reveal active le in Explorer  Ctrl+K R Show active le in new window/instance Ctrl+K O Show Source Control  Ctrl+Shif t+G Show Debug  Ctrl+Shif t+D Show Extensions  Ctrl+Shif t+X Replace in les  Ctrl+Shif t+H Toggle Search details  Ctrl+Shif t+J Show Output panel  Ctrl+Shif t+U Open Markdown preview  Ctrl+Shif t+V Open Markdown preview to the side  Ctrl+K V Zen Mode (Esc Esc to exit) Ctrl+K Z 󰅂 Rich languages editing Trigger suggestion  Ctrl+Spac e Trigger parameter hints  Ctrl+Shif t+Space Format document  Shift+Alt +F Format selection  Ctrl+K Ct rl+F Go to De nition  F12 Peek De nition  Alt+F12 Open De nition to the side  Ctrl+K F1 2 Quick Fix  Ctrl+. Show References  Shift+F1 2 Rename Symbol  F2 Trim trailing whitespace  Ctrl+K Ct rl+X Change le language Ctrl+K M 󰅂Editor management Close editor  Ctrl+F4, Ctrl+W Close folder  Ctrl+K F Split editor  Ctrl+ Focus into 1 st, 2nd or 3rd editor group  Ctrl+ 1 / 2 / 3 Focus into previous/next editor group  Ctrl+K Ct rl+ ←/→ Move editor left/right  Ctrl+Shif t+PgUp / PgDn Move active editor group Ctrl+K ← / → 󰅂Debug Toggle breakpoint  F9 Start/Continue  F5 Stop Shift+F5 Step into/out  F11 / Shi ft+F11 Step over  F10 Show hover Ctrl+K Ct rl+I 󰅂Integrated terminal Show integrated terminal  Ctrl+` Create new terminal  Ctrl+Shif t+` Copy selection  Ctrl+C Paste into active terminal  Ctrl+V Scroll up/down  Ctrl+↑ / ↓ 󰅂Navigation Show all Symbols  Ctrl+T Go to Line...  Ctrl+G Go to File...  Ctrl+P Go to Symbol...  Ctrl+Shif t+O Show Ctrl+Shif 󰅂Basic editing Ctrl+X Cut line (empty selection)  Ctrl+C Copy 󰏪 󰅢
  • 3.
    Scroll page up/down  Shift+PgU p /PgDn Scroll to top/bottom Ctrl+Hom e / End Problems panel  t+M Go to next error or warning  F8 Go to previous error or warning  Shift+F8 Navigate editor group history  Ctrl+Shif t+Tab Go back / forward Alt+ ← / → line (empty selection)  Move line up/down  Alt+ ↑ / ↓ Copy line up/down  Shift+Al t + ↓ / ↑ Delete line  Ctrl+Shif t+K Insert line below  Ctrl+Ente r Insert line above  Ctrl+Shif t+Enter Jump to matching bracket  Ctrl+Shif t+ Indent/outdent line  Ctrl+] / [ Go to beginning/end of line  Home / En d Go to beginning of le  Ctrl+Hom e Go to end of le  Ctrl+End Scroll line up/down  Ctrl+↑ / ↓ Scroll page up/down  Alt+PgUp / PgDn Fold (collapse) region  Ctrl+Shif t+[ Unfold (uncollapse) region  Ctrl+Shif t+] Fold (collapse) all subregions  Ctrl+K Ct rl+[ Unfold (uncollapse) all Ctrl+K Ct rl+] 󰏪 󰅢
  • 4.
    CheatSheetMaker.com SimpleCheatSheet.com subregions  Fold (collapse) all regions  Ctrl+KCt rl+0 Unfold (uncollapse) all regions  Ctrl+K Ct rl+J Add line comment  Ctrl+K Ct rl+C Remove line comment  Ctrl+K Ct rl+U Toggle line comment  Ctrl+/ Toggle block comment  Shift+Alt +A Toggle word wrap Alt+Z 󰏪 󰅢