Visual Studio Code
Code editing. Redefined.
Basic Editing:
Undo
Ctrl
Z
Redo
Ctrl
Y
Move Line Up
Alt
↑
Move Line Down
Alt
↓
Insert Line Below
Ctrl
↵
Insert Line Above
Ctrl
Shift
↵
Cut line (empty selection)
Ctrl
X
Copy line (empty selection)
Ctrl
C
Paste
Ctrl
V
Delete Line
Ctrl
Shift
K
Copy Line Down
Shift
Alt
↓
Copy Line Up
Shift
Alt
↑
Add Selection To Next Find Match
Ctrl
D
Move Last Selection To Next Find Match
Ctrl
K
+
Ctrl
D
Undo last cursor operation
Ctrl
U
Insert cursor at end of each line selected
Shift
Alt
I
Select all occurrences of current selection
Ctrl
Shift
L
Select all occurrences of current word
Ctrl
F2
Select current line
Ctrl
L
Insert Cursor Below
Ctrl
Alt
↓
Insert Cursor Above
Ctrl
Alt
↑
Jump to matching bracket
Ctrl
Shift
\
Indent Line
Ctrl
]
Outdent Line
Ctrl
[
Go to Beginning of Line
Home
Go to End of Line
End
Go to End of File
Ctrl
End
Go to Beginning of File
Ctrl
Home
Scroll Line Down
Ctrl
↓
Scroll Line Up
Ctrl
↑
Scroll Page Down
Alt
PageDown
Scroll Page Up
Alt
PageUp
Fold (collapse) region
Ctrl
Shift
[
Unfold (uncollapse) region
Ctrl
Shift
]
Fold (collapse) all subregions
Ctrl
K
+
Ctrl
[
Unfold (uncollapse) all subregions
Ctrl
K
+
Ctrl
]
Fold (collapse) all regions
Ctrl
K
+
Ctrl
0
Unfold (uncollapse) all regions
Ctrl
K
+
Ctrl
J
Add Line Comment
Ctrl
K
+
Ctrl
C
Remove Line Comment
Ctrl
K
+
Ctrl
U
Toggle Line Comment
Ctrl
/
Toggle Block Comment
Shift
Alt
A
Find
Ctrl
F
Replace
Ctrl
H
Find Next
↵
Find Previous
Shift
↵
Select All Occurrences of Find Match
Alt
↵
Toggle Find Case Sensitive
Alt
C
Toggle Find Regex
Alt
R
Toggle Find Whole Word
Alt
W
Toggle Use of Tab Key for Setting Focus
Ctrl
M
Toggle Word Wrap
Alt
Z
Navigation:
Show All Commands
Ctrl
Shift
P
Show All Symbols
Ctrl
T
Go to Line...
Ctrl
G
Go to File..., Quick Open
Ctrl
P
Go to Symbol...
Ctrl
Shift
O
Show Problems
Ctrl
Shift
M
Go to Next Error or Warning
F8
Go to Previous Error or Warning
Shift
F8
Navigate Editor Group History
Ctrl
Tab
Go Back
Alt
←
Go back in Quick Input
Alt
←
Go Forward
Alt
→
Focus Breadcrumbs
Ctrl
Shift
;
Focus and Select Breadcrumbs
Ctrl
Shift
.
Editor/Window Management:
New Window
Ctrl
Shift
N
Close Window
Alt
F4
Close Editor
Ctrl
W
Close Folder
Ctrl
K
+
F
Split Editor
Ctrl
\
Focus into First Editor Group
Ctrl
1
Focus into Second Editor Group
Ctrl
2
Focus into Third Editor Group
Ctrl
3
Move Editor Left
Ctrl
Shift
PageUp
Move Editor Right
Ctrl
Shift
PageDown
Move Active Editor Group Left
Ctrl
K
+
←
Move Active Editor Group Right
Ctrl
K
+
→
Move Editor into Next Group
Ctrl
Alt
→
Move Editor into Previous Group
Ctrl
Alt
←
Display:
Toggle Sidebar Visibility
Ctrl
B
Toggle Full Screen
F11
Toggle Zen Mode
Ctrl
K
+
Z
Leave Zen Mode
Esc
+
Esc
Zoom in
Ctrl
=
Zoom out
Ctrl
-
Reset Zoom
Ctrl
Numpad0
Show Explorer / Toggle Focus
Ctrl
Shift
E
Show Search
Ctrl
Shift
F
Show Source Control
Ctrl
Shift
G
Show Run
Ctrl
Shift
D
Show Extensions
Ctrl
Shift
X
Show Output
Ctrl
Shift
U
Quick Open View
Ctrl
Q
Open New Command Prompt
Ctrl
Shift
C
Toggle Markdown Preview
Ctrl
Shift
V
Open Preview to the Side
Ctrl
K
+
V
Toggle Integrated Terminal
Ctrl
`
File Management:
Save
Ctrl
S
New File
Ctrl
N
Open File...
Ctrl
O
Save All
Ctrl
K
+
S
Save As...
Ctrl
Shift
S
Close
Ctrl
W
Close Group
Ctrl
K
+
W
Close All
Ctrl
K
+
Ctrl
W
Reopen Closed Editor
Ctrl
Shift
T
Keep Open
Ctrl
K
+
↵
Copy Path of Active File
Ctrl
K
+
P
Reveal Active File in Windows
Ctrl
K
+
R
Show Opened File in New Window
Ctrl
K
+
O
Search:
Show Search
Ctrl
Shift
F
Replace in Files
Ctrl
Shift
H
Toggle Match Case
Alt
C
Toggle Match Whole Word
Alt
W
Toggle Use Regular Expression
Alt
R
Toggle Search Details
Ctrl
Shift
J
Focus Next Search Result
F4
Focus Previous Search Result
Shift
F4
Show Next Search Term
↓
Show Previous Search Term
↑
Search Editor:
Open Results In Editor
Alt
↵
Focus Search Editor Input
Esc
Search Again
Ctrl
Shift
R
Delete File Results
Ctrl
Shift
⌫
Tasks:
Run Build Task
Ctrl
Shift
B
Preferences:
Open Settings
Ctrl
,
Open Keyboard Shortcuts
Ctrl
K
+
Ctrl
S
Select Color Theme
Ctrl
K
+
Ctrl
T
Rich Languages Editing:
Trigger Suggest
Ctrl
⎵
Trigger Parameter Hints
Ctrl
Shift
⎵
Format Document
Shift
Alt
F
Format Selection
Ctrl
K
+
Ctrl
F
Go to Definition
F12
Show Hover
Ctrl
K
+
Ctrl
I
Peek Definition
Alt
F12
Open Definition to the Side
Ctrl
K
+
F12
Quick Fix
Ctrl
.
Go to References
Shift
F12
Rename Symbol
F2
Replace with Next Value
Ctrl
Shift
.
Replace with Previous Value
Ctrl
Shift
,
Expand AST Selection
Shift
Alt
→
Shrink AST Selection
Shift
Alt
←
Trim Trailing Whitespace
Ctrl
K
+
Ctrl
X
Change Language Mode
Ctrl
K
+
M
Debug:
Toggle Breakpoint
F9
Start
F5
Continue
F5
Start (without debugging)
Ctrl
F5
Pause
F6
Step Into
F11