Xcode keyboard shortcuts cheat sheet
Apple · 72 shortcuts72 Xcode shortcuts grouped by task. Click any row for the full answer page.
Essentials
| Action | Mac |
|---|---|
| Open quickly | Cmd+Shift+O⌘⇧O |
| Build | Cmd+B⌘B |
| Run | Cmd+R⌘R |
| Stop | Cmd+.⌘. |
| Save | Cmd+S⌘S |
| Find | Cmd+F⌘F |
| Find in workspace | Cmd+Shift+F⌘⇧F |
| Comment selection | Cmd+/⌘/ |
| Undo | Cmd+Z⌘Z |
| Redo | Cmd+Shift+Z⌘⇧Z |
| New file | Cmd+N⌘N |
| New tab | Cmd+T⌘T |
File
| Action | Mac |
|---|---|
| New project | Cmd+Shift+N⌘⇧N |
| New window | Cmd+Shift+T⌘⇧T |
| New group | Cmd+Option+N⌘⌥N |
| Open | Cmd+O⌘O |
| Close window | Cmd+W⌘W |
| Close tab | Cmd+Shift+W⌘⇧W |
| Save all | Cmd+Option+S⌘⌥S |
| Save as | Cmd+Shift+S⌘⇧S |
| Cmd+P⌘P | |
| Select next tab | Cmd+}⌘} |
| Select previous tab | Cmd+{⌘{ |
Edit
| Action | Mac |
|---|---|
| Cut | Cmd+X⌘X |
| Copy | Cmd+C⌘C |
| Paste | Cmd+V⌘V |
| Paste and match style | Cmd+Option+Shift+V⌘⌥⇧V |
| Duplicate | Cmd+D⌘D |
| Select all | Cmd+A⌘A |
| Find and replace | Cmd+Option+F⌘⌥F |
| Find next | Cmd+G⌘G |
| Find previous | Cmd+Shift+G⌘⇧G |
| Use selection for find | Cmd+E⌘E |
| Find and replace in workspace | Cmd+Option+Shift+F⌘⌥⇧F |
| Filter in navigator | Cmd+Option+J⌘⌥J |
View and navigation
| Action | Mac |
|---|---|
| Show project navigator | Cmd+1⌘1 |
| Show symbol navigator | Cmd+2⌘2 |
| Show search navigator | Cmd+3⌘3 |
| Show issue navigator | Cmd+4⌘4 |
| Show debug navigator | Cmd+5⌘5 |
| Show breakpoint navigator | Cmd+6⌘6 |
| Show log navigator | Cmd+7⌘7 |
| Show or hide navigator | Cmd+0⌘0 |
| Standard editor | Cmd+Enter⌘↵ |
| Assistant editor | Cmd+Option+Enter⌘⌥↵ |
| Show debug area | Cmd+Shift+Y⌘⇧Y |
| Reveal in project navigator | Cmd+L⌘L |
| Jump to definition | Cmd+Shift+D⌘⇧D |
| Jump to counterpart | Cmd+Ctrl+Up⌘⌃↑ |
| Go back | Cmd+Ctrl+Left⌘⌃← |
| Go forward | Cmd+Ctrl+Right⌘⌃→ |
| Jump to next issue | Cmd+'⌘' |
Source editing
| Action | Mac |
|---|---|
| Show completions | Ctrl+\⌃\ |
| Shift right | Cmd+]⌘] |
| Shift left | Cmd+[⌘[ |
| Move line up | Cmd+Option+[⌘⌥[ |
| Move line down | Cmd+Option+]⌘⌥] |
| Fold | Cmd+Option+Left⌘⌥← |
| Unfold | Cmd+Option+Right⌘⌥→ |
| Edit all in scope | Ctrl+Cmd+E⌃⌘E |
| Fix all in scope | Ctrl+Cmd+F⌃⌘F |
| Jump to next placeholder | Ctrl+/⌃/ |
Build and debug
| Action | Mac |
|---|---|
| Clean build folder | Cmd+Option+Shift+K⌘⌥⇧K |
| Clean | Cmd+Shift+K⌘⇧K |
| Analyze | Ctrl+Cmd+B⌃⌘B |
| Profile | Cmd+I⌘I |
| Step over | F6F6 |
| Step into | F7F7 |
| Step out | F8F8 |
| Add breakpoint at current line | Cmd+\⌘\ |
| Deactivate breakpoints | Cmd+Y⌘Y |
| Clear console | Cmd+K⌘K |
More developer tools shortcuts
Ask your agent
Prompt
Make me a one-page Xcode cheat sheet from the 72 shortcuts at https://keyflowhub.com/shortcuts/xcode, ordered by what I'm most likely to use, and point out any that clash with my current keybindings.
Paste into Claude Code and it will do the rest.
Questions
Mac: Cmd + Z.
Mac: Cmd + Shift + Z.
Mac: Cmd + S.
Mac: Cmd + F.
Sources: developer.apple.com