Why Keyboard Shortcuts Matter
Switching between mouse and keyboard constantly breaks your flow. Learning a handful of shortcuts can save you hours each week and keep you in that productive zone where code just flows.
Here are the shortcuts I use daily as a developer on macOS.
System Navigation
| Shortcut | Action |
|---|---|
β + Space | Open Spotlight search |
β + Tab | Switch between applications |
β + ~ | Switch between windows of the same app |
β + β/β | Switch between desktops |
β + β + F | Toggle fullscreen |
β + H | Hide current window |
β + β₯ + H | Hide all other windows |
Text Editing
These work in almost every text field on macOS:
| Shortcut | Action |
|---|---|
β₯ + β/β | Move cursor by word |
β + β/β | Move cursor to start/end of line |
β₯ + β« | Delete previous word |
β + β« | Delete to start of line |
β + β§ + β/β | Select to start/end of line |
β₯ + β§ + β/β | Select by word |
Terminal Shortcuts
If you spend time in the terminal, these are essential:
β + A Move to start of line
β + E Move to end of line
β + U Clear line before cursor
β + K Clear line after cursor
β + W Delete previous word
β + R Reverse search command history
β + L Clear the screen
!! + Enter Repeat last command
VS Code Shortcuts
VS Code is where most of the magic happens:
| Shortcut | Action |
|---|---|
β + P | Quick file open |
β + β§ + P | Command palette |
β + B | Toggle sidebar |
β + J | Toggle terminal panel |
β + D | Select next occurrence |
β₯ + β/β | Move line up/down |
β + β§ + K | Delete entire line |
β + / | Toggle line comment |
β + β§ + L | Select all occurrences |
β + G | Go to line number |
Screenshot Shortcuts
Handy for documentation and bug reports:
| Shortcut | Action |
|---|---|
β + β§ + 3 | Full screen screenshot |
β + β§ + 4 | Selection screenshot |
β + β§ + 4 + Space | Window screenshot |
β + β§ + 5 | Screenshot toolbar |
Building Muscle Memory
Donβt try to learn all of these at once. Pick 3-5 that address your biggest friction points and commit to using them for a week. Once theyβre automatic, add a few more. The compound effect is real β small time savings add up to hours over a month.