VS Code Shortcuts I Use Daily
Navigation
| Shortcut | Action |
|---|---|
Ctrl+P | Quick file open |
Ctrl+Shift+P | Command palette |
Ctrl+G | Go to line |
Ctrl+Tab | Switch between open files |
Ctrl+B | Toggle sidebar |
Editing
| Shortcut | Action |
|---|---|
Alt+↑/↓ | Move line up/down |
Shift+Alt+↓ | Duplicate line down |
Ctrl+D | Select next occurrence |
Ctrl+/ | Toggle line comment |
Ctrl+Shift+K | Delete line |
Ctrl+Z / Ctrl+Shift+Z | Undo / Redo |
Multi-cursor
| Shortcut | Action |
|---|---|
Alt+Click | Add cursor |
Ctrl+Alt+↑/↓ | Add cursor above/below |
Ctrl+Shift+L | Select all occurrences |
Terminal
| Shortcut | Action |
|---|---|
| Ctrl+` | Toggle terminal |
Ctrl+Shift+5 | Split terminal |
Search
| Shortcut | Action |
|---|---|
Ctrl+F | Find in file |
Ctrl+Shift+F | Find in all files |
Ctrl+H | Find and replace |