Hotkeys and shortcuts for Visual Studio Code (Linux)

(Total 118)

Ctrl + ↑   Shift + P then F1
General
F1 Show Command Palette
Ctrl + P
Navigation
Go to file
Ctrl + ↑   Shift + N
General
New window/instance
Ctrl + W
File management
Close
Ctrl + ,
General
User Settings
Ctrl + K then Ctrl + S
General
Keyboard Shortcuts
Ctrl + X
Basic editing
Cut line (empty selection)
Ctrl + C
Basic editing
Copy line (empty selection)
Alt + ↑  ↓
Basic editing
Move line up/down
Ctrl + ↑   Shift + K
Basic editing
Delete line
Ctrl + ⤶ Enter
Basic editing
Insert line below
Ctrl + ↑   Shift + ⤶ Enter
Basic editing
Insert line above
Ctrl + ↑   Shift + \
Basic editing
Jump to matching bracket
Ctrl + ]
Basic editing
Indent/outdent line
Ctrl + [
Basic editing
Indent/outdent line
Home
Basic editing
Go to beginning of line
End
Basic editing
Go to end of line
Ctrl + Home
Integrated terminal
Scroll to top
Ctrl + End
Integrated terminal
Scroll to bottom
Ctrl + ↑  ↓
Basic editing
Scroll line up/down
Alt + Page Up
Basic editing
Scroll page up
Alt + Page Down
Basic editing
Scroll page down
Ctrl + ↑   Shift + [
Basic editing
Fold (collapse) region
Ctrl + ↑   Shift + ]
Basic editing
Unfold (uncollapse) region
Ctrl + K then Ctrl + [
Basic editing
Fold (collapse) all subregions
Ctrl + K then Ctrl + ]
Basic editing
Unfold (uncollapse) all subregions
Ctrl + K then Ctrl + 0
Basic editing
Fold (collapse) all regions
Ctrl + K then Ctrl + J
Basic editing
Unfold (uncollapse) all regions
Ctrl + K then Ctrl + C
Basic editing
Add line comment
Ctrl + K then Ctrl + U
Basic editing
Remove line comment
Ctrl + /
Basic editing
Toggle line comment
↑   Shift + Alt + A
Basic editing
Toggle block comment
Alt + Z
Basic editing
Toggle word wrap
Ctrl + T
Navigation
Show all symbols
Ctrl + G
Navigation
Go to line
Ctrl + ↑   Shift + O
Navigation
Go to symbol
Ctrl + ↑   Shift + M
Navigation
Show Problems panel
F8
Navigation
Go to next error or warning
↑   Shift + F8
Navigation
Go to previous error or warning
Ctrl + ↑   Shift + ⭾ Tab
File management
Open previous
Ctrl + Alt + -
Navigation
Go back
Ctrl + ↑   Shift + -
Navigation
Go forward
Ctrl + M
Navigation
Toggle Tab moves focus
Ctrl + F
Search and replace
Find
Ctrl + H
Search and replace
Replace
F3
Search and replace
Find next
↑   Shift + F3
Search and replace
Find previous
Alt + ⤶ Enter
Search and replace
Select all occurences of Find match
Ctrl + D
Search and replace
Add selection to next Find match
Ctrl + K then Ctrl + D
Search and replace
Move last selection to next Find match
Alt + Mouse left click
Multi-cursor and selection
Insert cursor
↑   Shift + Alt + ↑  ↓
Multi-cursor and selection
Insert cursor above / below
Ctrl + U
Multi-cursor and selection
Undo last cursor operation
↑   Shift + Alt + I
Multi-cursor and selection
Insert cursor at end of each line selected
Ctrl + I
Multi-cursor and selection
Select current line
Ctrl + ↑   Shift + L
Multi-cursor and selection
Select all occurrences of current selection
Ctrl + F2
Multi-cursor and selection
Select all occurrences of current word
↑   Shift + Alt +
Multi-cursor and selection
Expand selection
↑   Shift + Alt +
Multi-cursor and selection
Shrink selection
↑   Shift + Alt + Mouse movement
Multi-cursor and selection
Column (box) selection
Ctrl + ↑   Shift + Alt + ← ↑ → ↓
Multi-cursor and selection
Column (box) selection
Ctrl + Space
Rich languages editing
Trigger suggestion
Ctrl + ↑   Shift + Space
Rich languages editing
Trigger parameter hints
Ctrl + ↑   Shift + I
Rich languages editing
Format document
Ctrl + K then Ctrl + F
Rich languages editing
Format selection
F12
Rich languages editing
Go to Definition
Ctrl + ↑   Shift + F10
Rich languages editing
Peek Definition
Ctrl + K then F12
Rich languages editing
12 Open Definition to the side
Ctrl + .
Rich languages editing
Quick Fix
↑   Shift + F12
Rich languages editing
Show References
F2
Rich languages editing
Rename Symbol
Ctrl + K then Ctrl + X
Rich languages editing
Trim trailing whitespace
Ctrl + K then M
Rich languages editing
M Change file language
Ctrl + K then F
Editor management
F Close folder
Ctrl + \
Editor management
Split editor
Ctrl + 1
Editor management
Focus into first group
Ctrl + 2
Editor management
Focus into second group
Ctrl + 3
Editor management
Focus into third group
Ctrl + K then Ctrl + ←  →
Editor management
Focus into previous/next editor group
Ctrl + Shift + Page Up
Editor management
Move editor left
Ctrl + Shift + Page Down
Editor management
Move editor right
Ctrl + K then ←  →
Editor management
ht Move active editor group
Ctrl + N
File management
New File
Ctrl + O
File management
Open File
Ctrl + S
File management
Save
Ctrl + ↑   Shift + S
File management
Save As
Ctrl + K
Display
Z Zen Mode (Esc Esc to exit)
Ctrl + K then Ctrl + W
File management
Close All
Ctrl + ↑   Shift + T
File management
Reopen closed editor
Ctrl + ⭾ Tab
File management
Open next
Ctrl + K then P
File management
P Copy path of active file
Ctrl + K then R
File management
Reveal active file in Explorer
Ctrl + K then O
File management
Show active file in new window/instance
F11
Debug
Step into
↑   Shift + Alt + 1
Display
Toggle editor layout (horizontal/vertical)
Ctrl + =
Display
Zoom in
Ctrl + -
Display
Zoom out
Ctrl + B
Display
Toggle Sidebar visibility
Ctrl + ↑   Shift + E
Display
Show Explorer / Toggle focus
Ctrl + ↑   Shift + F
Display
Show Search
Ctrl + ↑   Shift + G
Display
Show Source Control
Ctrl + ↑   Shift + D
Display
Show Debug
Ctrl + ↑   Shift + X
Display
Show Extensions
Ctrl + ↑   Shift + H
Display
Replace in files
Ctrl + ↑   Shift + J
Display
Toggle Search details
Ctrl + ↑   Shift + C
Integrated terminal
Copy selection
Ctrl + ↑   Shift + V
Integrated terminal
Paste into active terminal
F9
Debug
Toggle breakpoint
F5
Debug
Start/Continue
↑   Shift + F5
Debug
Stop
↑   Shift + F11
Debug
Step out
F10
Debug
Step over
Ctrl + K then Ctrl + I
Debug
Show hover
Ctrl + `
Integrated terminal
Show integrated terminal
Ctrl + ↑   Shift + `
Integrated terminal
Create new terminal
Ctrl + ↑   Shift + ↑  ↓
Integrated terminal
Scroll up/down
Shift + Page Up
Integrated terminal
Scroll page up
Shift + Page Down
Integrated terminal
Scroll page down