VS Code shortcuts. On Mac, treat Ctrl as ⌘ where noted (official keymap may differ slightly).
Core
- Command Palette: Ctrl+Shift+P
- Quick open file: Ctrl+P
- Toggle terminal: Ctrl+`
- Save all: Ctrl+K then S
Edit like a pro
- Multi-cursor: Alt+click (Mac: Option+click)
- Add cursor above/below: Ctrl+Alt+↑/↓
- Select next occurrence: Ctrl+D
- Expand selection: Shift+Alt+→
- Move line: Alt+↑/↓
- Duplicate line: Shift+Alt+↓
Navigation
- Go to symbol in file: Ctrl+Shift+O
- Go to definition: F12
- Peek definition: Alt+F12
- Go back/forward: Alt+← / Alt+→
Find & replace
- Find: Ctrl+F
- Replace: Ctrl+H
- Find in files: Ctrl+Shift+F
Customize anything: Preferences → Keyboard Shortcuts (search by command name).