VS Code Shortcuts
Become a power user with these essential Visual Studio Code shortcuts.
General
| Action | Windows | Mac |
|---|---|---|
| Show Command Palette | Ctrl + Shift + P | Cmd + Shift + P |
| Quick Open, Go to File | Ctrl + P | Cmd + P |
| New Window/Instance | Ctrl + Shift + N | Cmd + Shift + N |
| Close Window/Instance | Ctrl + Shift + W | Cmd + Shift + W |
| User Settings | Ctrl + , | Cmd + , |
| Keyboard Shortcuts | Ctrl + K Ctrl + S | Cmd + K Cmd + S |
Basic Editing
| Action | Windows | Mac |
|---|---|---|
| Cut Line (empty selection) | Ctrl + X | Cmd + X |
| Copy Line (empty selection) | Ctrl + C | Cmd + C |
| Move Line Up/Down | Alt + ↑ / ↓ | Opt + ↑ / ↓ |
| Copy Line Up/Down | Shift + Alt + ↑ / ↓ | Shift + Opt + ↑ / ↓ |
| Delete Line | Ctrl + Shift + K | Cmd + Shift + K |
| Insert Line Below | Ctrl + Enter | Cmd + Enter |
| Insert Line Above | Ctrl + Shift + Enter | Cmd + Shift + Enter |
| Jump to matching bracket | Ctrl + Shift + \ | Cmd + Shift + \ |
| Indent/Outdent Line | Ctrl + ] / [ | Cmd + ] / [ |
Multi-Cursor & Selection
| Action | Windows | Mac |
|---|---|---|
| Insert Cursor | Alt + Click | Opt + Click |
| Insert Cursor Above/Below | Ctrl + Alt + ↑ / ↓ | Cmd + Opt + ↑ / ↓ |
| Select current line | Ctrl + L | Cmd + L |
| Select all occurrences of current word | Ctrl + Shift + L | Cmd + Shift + L |
| Select next occurrence | Ctrl + D | Cmd + D |
Search & Replace
| Action | Windows | Mac |
|---|---|---|
| Find | Ctrl + F | Cmd + F |
| Replace | Ctrl + H | Cmd + Option + F |
| Find next/previous | F3 / Shift + F3 | Cmd + G / Shift + Cmd + G |
| Select all occurrences of Find match | Alt + Enter | Option + Enter |