macOS

macOS Developer Keyboard Shortcuts

Essential macOS keyboard shortcuts for developers - system navigation, Finder, screenshots, window management, and productivity.

System Navigation

ShortcutAction
Cmd+SpaceSpotlight Search
Cmd+TabSwitch between applications
Cmd+~Switch between windows of same app
Cmd+QQuit application
Cmd+WClose window
Cmd+MMinimize window
Cmd+HHide application
Cmd+Opt+HHide all other applications
Ctrl+UpMission Control
Ctrl+DownApplication windows
Ctrl+Left/RightSwitch between desktops
Cmd+Ctrl+FToggle fullscreen
Cmd+Opt+EscForce Quit menu
Cmd+Ctrl+QLock screen
Cmd+Shift+QLog out

Window Management

ShortcutAction
Ctrl+Cmd+FToggle fullscreen
Cmd+Opt+DToggle Dock visibility
Fn+FToggle fullscreen (newer Macs)
Globe+Click title barTiling options (Sequoia+)
Cmd+Ctrl+LeftTile window left (Sequoia+)
Cmd+Ctrl+RightTile window right (Sequoia+)
Cmd+NNew window
Cmd+TNew tab
Cmd+Shift+TReopen closed tab
Cmd+1-9Switch to tab by number

Finder

ShortcutAction
Cmd+Shift+GGo to folder path
Cmd+Shift+.Toggle hidden files
Cmd+Shift+NNew folder
Cmd+DeleteMove to Trash
Cmd+Shift+DeleteEmpty Trash
Cmd+IGet Info
Cmd+DDuplicate
Cmd+LMake alias
SpaceQuick Look (preview)
Cmd+1/2/3/4View as icons/list/columns/gallery
Cmd+UpGo to parent folder
Cmd+DownOpen selected item
Cmd+Opt+CCopy file path
Cmd+Shift+COpen Computer
Cmd+Shift+HOpen Home folder
Cmd+Shift+DOpen Desktop folder
Cmd+Shift+AOpen Applications folder

Text Editing (System-wide)

ShortcutAction
Cmd+ASelect all
Cmd+CCopy
Cmd+VPaste
Cmd+Shift+VPaste without formatting
Cmd+XCut
Cmd+ZUndo
Cmd+Shift+ZRedo
Cmd+FFind
Cmd+GFind next
Cmd+Shift+GFind previous
Opt+Left/RightMove by word
Cmd+Left/RightMove to start/end of line
Cmd+Up/DownMove to start/end of document
Opt+DeleteDelete word backward
Fn+DeleteForward delete
Opt+Fn+DeleteDelete word forward
Cmd+DeleteDelete to beginning of line
Ctrl+KDelete to end of line

Screenshots

ShortcutAction
Cmd+Shift+3Screenshot entire screen
Cmd+Shift+4Screenshot selection
Cmd+Shift+4+SpaceScreenshot window
Cmd+Shift+5Screenshot/recording toolbar
Cmd+Shift+6Screenshot Touch Bar
Ctrl+ (add to any above)Copy to clipboard instead of file

Developer Utilities

ShortcutAction
Cmd+Opt+IOpen DevTools (in browsers)
Cmd+Shift+.Show hidden files in Finder/dialogs
Cmd+Opt+EscForce Quit (hung applications)
Ctrl+Cmd+SpaceEmoji & Symbols picker
Cmd+,Open preferences (any app)
Cmd+Opt+DShow/hide Dock
ShortcutAction
Cmd+SpaceOpen Spotlight
Cmd+Opt+SpaceOpen Finder search
Type then Cmd+EnterReveal in Finder from Spotlight
Type then Cmd+BSearch web from Spotlight
Type then Cmd+RShow Siri knowledge

Terminal-Specific

ShortcutAction
pbcopyCopy stdin to clipboard (pipe)
pbpastePaste clipboard to stdout
open .Open current directory in Finder
open -a "App Name"Open application
caffeinatePrevent sleep
say "text"Text-to-speech
mdfind "query"Spotlight search from CLI
defaults writeModify system preferences