VS Code Keyboard Shortcuts
Publish date: Dec 19, 2021
Last updated: Feb 9, 2023
General
Keyboard shortcuts |
Commands |
Ctrl + Shift + P, F1 |
Show Command Palette |
Ctrl + P |
Quick Open, Go to File… |
Ctrl + K & Ctrl + S |
Keyboard Shortcuts |
Basic Editing
Keyboard shortcuts |
Commands |
Alt + ↑ / ↓ |
Move line up/down |
Ctrl + Shift + [ |
Fold (collapse) region |
Ctrl + Shift + ] |
Unfold (uncollapse) region |
Alt + Z |
Toggle word wrap |
Multi-cursor and selection
Keyboard shortcuts |
Commands |
Alt + Click |
Insert cursor |
Ctrl + Alt + ↑ / ↓ |
Insert cursor above / below |
Ctrl + U |
Undo last cursor operation |
Ctrl + Shift + L |
Select all occurrences of current selection |
Ctrl + F2 |
Select all occurrences of current word |
Shift + Alt + (drag mouse) |
Column (box) selection |
Ctrl + Shift + Alt + ↑ / ↓ |
Column (box) selection |
Shift + Alt + I |
Insert cursor at end of each line selected |
Shift + Alt + I, Home |
Insert cursor at beginning of each line selected |
Shift + Home |
Extending the selection to the beginning of each line selected |
Shift + End |
Extending the selection to the end of each line selected |
Display
Keyboard shortcuts |
Commands |
F11 |
Toggle full screen |
Ctrl + B |
Toggle Sidebar visibility |
Ctrl + Shift + F |
Show Search |
Ctrl + K V |
Open Markdown preview to the side |
Ctrl + K Z |
Zen Mode |
Integrated Terminal
Keyboard shortcuts |
Commands |
Ctrl + ` |
Show integrated terminal |
Ctrl + Shift + ` |
Create new terminal |