Xcode macOS Shortcuts
| Action | macOS Shortcut |
|---|---|
| Build & Run | |
| Build | ⌘B |
| Run | ⌘R |
| Test | ⌘U |
| Stop | ⌘. |
| Build and analyze | ⌘Shift+B |
| Profile (Instruments) | ⌘I |
| Clean build folder | ⌘⌥⇧K |
| Navigation | |
| Open quickly (fuzzy file open) | ⌘⇧O |
| Go to definition | ⌃⌘click |
| Navigate back | ⌃⌘← |
| Navigate forward | ⌃⌘→ |
| Jump to line | ⌘L |
| Find in project | ⌘⇧F |
| Find in file | ⌘F |
| Find next | ⌘G |
| Find previous | ⌘⇧G |
| Switch between header/source | ⌃⌘↑ |
| Editor | |
| Comment / uncomment code | ⌘/ |
| Re-indent selection | ⌃I |
| Show completions | Esc |
| Show quick help | ⌥click |
| Open in assistant editor | ⌥click(file) |
| Show callers | ⌃1 |
| Fold method | ⌘⌥← |
| Unfold method | ⌘⌥→ |
| Fold all methods | ⌘⌥⇧← |
| Unfold all methods | ⌘⌥⇧→ |
| Workspace | |
| Hide / show navigator | ⌘0 |
| Navigator tab 1–9 | ⌘1–⌘9 |
| Hide / show inspector | ⌘⌥0 |
| Show / hide debug area | ⌘⇧Y |
| Activate console | ⌘⇧C |
| Clear console | ⌘K |
| Show standard editor | ⌘↩ |
| Show version editor | ⌘⌥⇧↩ |
| Debugging | |
| Add breakpoint at current line | ⌘\ |
| Step over | F6 |
| Step into | F7 |
| Step out | F8 |
| Continue | ⌃⌘Y |
| Pause / continue | ⌃⌘Y |
| Debug memory graph | ⌘⇧M |