Keyboard Shortcuts Cheat Sheet
Boost your productivity by keeping your hands on the keyboard. Essential shortcuts for VS Code, Vim, and the Terminal.
VS Code (Mac)
| Key / Code | Description |
|---|---|
| Cmd + P | Quick Open (File search) |
| Cmd + Shift + F | Global Find |
| Cmd + B | Toggle Sidebar |
| Ctrl + ` | Toggle Terminal |
| Option + Click | Multi-cursor (Insert cursor at click) |
| Cmd + D | Select next occurrence of current selection |
| Cmd + Shift + L | Select all occurrences of current selection |
| Option + Up/Down | Move line up/down |
| Shift + Option + Up/Down | Duplicate line up/down |
Terminal (Bash/Zsh)
| Key / Code | Description |
|---|---|
| Ctrl + A | Go to start of line |
| Ctrl + E | Go to end of line |
| Ctrl + R | Reverse search history |
| Ctrl + L | Clear screen |
| Ctrl + W | Delete word before cursor |
| Ctrl + U | Clear line before cursor |
| !! | Repeat last command (e.g. 'sudo !!') |
Vim (Basic Navigation)
| Key / Code | Description |
|---|---|
| h / j / k / l | Left / Down / Up / Right |
| i | Insert mode |
| Esc | Exit Insert mode |
| :w | Save |
| :q | Quit |
| dd | Delete (cut) line |
| yy | Yank (copy) line |
| p | Paste |
| / | Search |
Knowledge is power.