VS Code Keyboard Shortcuts Guide
Ad
Essential VS Code Shortcuts
Mastering shortcuts dramatically speeds up your coding. Here are the most valuable ones (Mac users: swap Ctrl for Cmd).
Navigation
| Action | Shortcut |
|---|---|
| Command Palette | Ctrl + Shift + P |
| Quick Open file | Ctrl + P |
| Go to line | Ctrl + G |
| Go to definition | F12 |
Editing
| Action | Shortcut |
|---|---|
| Duplicate line | Shift + Alt + ↓ |
| Move line | Alt + ↑/↓ |
| Comment line | Ctrl + / |
| Multi-cursor | Ctrl + Alt + ↓ |
| Select next match | Ctrl + D |
Search & Replace
Ctrl + F Find
Ctrl + H Replace
Ctrl + Shift + F Find in all files
Terminal & Panels
Ctrl + ` Toggle terminal
Ctrl + B Toggle sidebar
FAQs
How do I see all shortcuts?
Ctrl + K then Ctrl + S opens the keyboard shortcuts editor. More in our VS Code guides.
Can I customize them?
Yes — fully remappable in keybindings settings.
