macOS
macOS Developer Keyboard Shortcuts
Essential macOS keyboard shortcuts for developers - system navigation, Finder, screenshots, window management, and productivity.
System Navigation
| Shortcut | Action |
|---|---|
Cmd+Space | Spotlight Search |
Cmd+Tab | Switch between applications |
Cmd+~ | Switch between windows of same app |
Cmd+Q | Quit application |
Cmd+W | Close window |
Cmd+M | Minimize window |
Cmd+H | Hide application |
Cmd+Opt+H | Hide all other applications |
Ctrl+Up | Mission Control |
Ctrl+Down | Application windows |
Ctrl+Left/Right | Switch between desktops |
Cmd+Ctrl+F | Toggle fullscreen |
Cmd+Opt+Esc | Force Quit menu |
Cmd+Ctrl+Q | Lock screen |
Cmd+Shift+Q | Log out |
Window Management
| Shortcut | Action |
|---|---|
Ctrl+Cmd+F | Toggle fullscreen |
Cmd+Opt+D | Toggle Dock visibility |
Fn+F | Toggle fullscreen (newer Macs) |
| Globe+Click title bar | Tiling options (Sequoia+) |
Cmd+Ctrl+Left | Tile window left (Sequoia+) |
Cmd+Ctrl+Right | Tile window right (Sequoia+) |
Cmd+N | New window |
Cmd+T | New tab |
Cmd+Shift+T | Reopen closed tab |
Cmd+1-9 | Switch to tab by number |
Finder
| Shortcut | Action |
|---|---|
Cmd+Shift+G | Go to folder path |
Cmd+Shift+. | Toggle hidden files |
Cmd+Shift+N | New folder |
Cmd+Delete | Move to Trash |
Cmd+Shift+Delete | Empty Trash |
Cmd+I | Get Info |
Cmd+D | Duplicate |
Cmd+L | Make alias |
Space | Quick Look (preview) |
Cmd+1/2/3/4 | View as icons/list/columns/gallery |
Cmd+Up | Go to parent folder |
Cmd+Down | Open selected item |
Cmd+Opt+C | Copy file path |
Cmd+Shift+C | Open Computer |
Cmd+Shift+H | Open Home folder |
Cmd+Shift+D | Open Desktop folder |
Cmd+Shift+A | Open Applications folder |
Text Editing (System-wide)
| Shortcut | Action |
|---|---|
Cmd+A | Select all |
Cmd+C | Copy |
Cmd+V | Paste |
Cmd+Shift+V | Paste without formatting |
Cmd+X | Cut |
Cmd+Z | Undo |
Cmd+Shift+Z | Redo |
Cmd+F | Find |
Cmd+G | Find next |
Cmd+Shift+G | Find previous |
Opt+Left/Right | Move by word |
Cmd+Left/Right | Move to start/end of line |
Cmd+Up/Down | Move to start/end of document |
Opt+Delete | Delete word backward |
Fn+Delete | Forward delete |
Opt+Fn+Delete | Delete word forward |
Cmd+Delete | Delete to beginning of line |
Ctrl+K | Delete to end of line |
Screenshots
| Shortcut | Action |
|---|---|
Cmd+Shift+3 | Screenshot entire screen |
Cmd+Shift+4 | Screenshot selection |
Cmd+Shift+4+Space | Screenshot window |
Cmd+Shift+5 | Screenshot/recording toolbar |
Cmd+Shift+6 | Screenshot Touch Bar |
Ctrl+ (add to any above) | Copy to clipboard instead of file |
Developer Utilities
| Shortcut | Action |
|---|---|
Cmd+Opt+I | Open DevTools (in browsers) |
Cmd+Shift+. | Show hidden files in Finder/dialogs |
Cmd+Opt+Esc | Force Quit (hung applications) |
Ctrl+Cmd+Space | Emoji & Symbols picker |
Cmd+, | Open preferences (any app) |
Cmd+Opt+D | Show/hide Dock |
Spotlight & Search
| Shortcut | Action |
|---|---|
Cmd+Space | Open Spotlight |
Cmd+Opt+Space | Open Finder search |
Type then Cmd+Enter | Reveal in Finder from Spotlight |
Type then Cmd+B | Search web from Spotlight |
Type then Cmd+R | Show Siri knowledge |
Terminal-Specific
| Shortcut | Action |
|---|---|
pbcopy | Copy stdin to clipboard (pipe) |
pbpaste | Paste clipboard to stdout |
open . | Open current directory in Finder |
open -a "App Name" | Open application |
caffeinate | Prevent sleep |
say "text" | Text-to-speech |
mdfind "query" | Spotlight search from CLI |
defaults write | Modify system preferences |