Visual Studio Code Shortcuts
Visual Studio Code shortcut quick reference.
How to find shortcut
Ctrl + Shift + P, then type the name to find the shortcuts. E.g. bracket
Navigation
Alt + ArrowLeft/Right
Go back/forward
Ctrl + ArrowUp/Down
Scroll window
Ctrl + Shift + \
Move the cursor between the beginning bracket and the ending bracket
F3
Shift + F3
Find next/previous
Ctrl + Shift + O
@:
Go to symbol. @: Go to symbol by category.
Ctrl + T
Go to symbol in the workspace
F12
Go to definition
Alt + F12
Peek Definition
Shift + F12
Show References
Ctrl + P
Go to file
Ctrl + Shift + Tab
Navigate between opened files
F8
Shift + F8
Go to next/previous error
Ctrl + Shift + M
Open Problems panel
Multi-cursor
Ctrl + D
Add selection to next Find match
Ctrl + K, Ctrl + D
Undo the last selection. Move last selection to next Find match
Ctrl + F2
Select all occurrences of current word
Ctrl + Shift + L
Select all occurrences of current selection
Ctrl + F, Alt + Enter
Select all occurrences of Find match
Ctrl + Alt + Arrow Down/Up
Insert cursor above / below, then Shift to select, or Arrow Up/Down to move cursor, or type. Esc to escape.
Sometimes, it conflicts with the global hotkey to rotate screen.
To solve it, right click Desktop, select Graphics Options, select Hot Keys, select Disable.
Shift + Alt + (drag mouse)
Ctrl + Shift + Alt + (arrow key)
Column (box) selection
Side by side
Ctrl + \
Split editor
Ctrl + W
Close editor
Ctrl + 1/2/3
Active editor by order
Ctrl + M, Ctrl + M (my custom shortcut)
Maximize current editor
Ctrl + Shift + M, Ctrl + Shift + M (my custom shortcut)
Maximize current editor
Ctrl + K, F12
Open definition to the side
Alt + Z
Toggle word wrap
Editing
Ctrl + Shift + K
Delete line
Ctrl + K, Ctrl + X
Trim trailing whitespace
Ctrl + K, Ctrl + F
Format the selection
Alt + Shift + F
Format the document
Ctrl + /
Toggle line comment
Intelligence
Ctrl + .
Quick fix
Ctrl + Space
Trigger suggestion
Ctrl + Shift + Space
Trigger parameter hints