Back to Blog

Essential Mac Keyboard Shortcuts for Developers

A curated collection of Mac keyboard shortcuts that boost developer productivity, from system navigation to terminal and IDE tricks.

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

ShortcutAction
⌘ + SpaceOpen Spotlight search
⌘ + TabSwitch between applications
⌘ + ~Switch between windows of the same app
βŒƒ + ←/β†’Switch between desktops
⌘ + βŒƒ + FToggle fullscreen
⌘ + HHide current window
⌘ + βŒ₯ + HHide all other windows

Text Editing

These work in almost every text field on macOS:

ShortcutAction
βŒ₯ + ←/β†’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:

ShortcutAction
⌘ + PQuick file open
⌘ + ⇧ + PCommand palette
⌘ + BToggle sidebar
⌘ + JToggle terminal panel
⌘ + DSelect next occurrence
βŒ₯ + ↑/↓Move line up/down
⌘ + ⇧ + KDelete entire line
⌘ + /Toggle line comment
⌘ + ⇧ + LSelect all occurrences
βŒƒ + GGo to line number

Screenshot Shortcuts

Handy for documentation and bug reports:

ShortcutAction
⌘ + ⇧ + 3Full screen screenshot
⌘ + ⇧ + 4Selection screenshot
⌘ + ⇧ + 4 + SpaceWindow screenshot
⌘ + ⇧ + 5Screenshot 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.