The shortcuts senior iOS engineers actually use. Memorize the starred ones; the rest are nice to know.
| Shortcut | Action | Notes |
⌘⇧O | ★ Open Quickly (any file by fuzzy name) | The single most-used shortcut. Type LoginV to jump to LoginViewController.swift. |
⌃⌘↑ | Switch between .h / .m or counterpart file | Less useful in Swift but works |
⌃6 | ★ Jump to symbol in current file | Method picker dropdown |
⌃⌘J | Jump to definition | Same as ⌘ + click |
⌃⌘← / → | Navigate back / forward (like browser history) | Essential for navigation-heavy work |
⌘L | Jump to line number | |
⌘1–⌘9 | Switch navigator tabs (Project, Find, etc.) | |
⌘0 | Hide/show navigator (left sidebar) | |
⌘⌥0 | Hide/show inspector (right sidebar) | |
⌘⇧Y | Hide/show debug area (bottom) | |
| Shortcut | Action |
⌘F | Find in current file |
⌘⇧F | ★ Find in workspace |
⌘⌥F | Find & replace in current file |
⌘⌥⇧F | Find & replace in workspace |
⌘E | Use selection for find |
⌘G / ⌘⇧G | Find next / previous |
| Shortcut | Action |
⌘B | Build |
⌘R | ★ Run |
⌘. | ★ Stop |
⌘U | Run all tests |
⌃⌘U | Build for testing (no run) |
⌃⌥⌘U | Run currently-edited test |
⌘⇧K | Clean build folder |
| Shortcut | Action |
⌃I | Re-indent current line(s) |
⌘/ | ★ Toggle line comment |
⌥⌘[ / ] | Move line up / down |
⌃K | Delete to end of line |
⌘D | Duplicate line(s) (in some Xcode versions; otherwise via Editor menu) |
⌘⇧A | ★ Show code actions (refactor, fix, generate) |
⌥ + click | Reveal documentation for symbol |
⌥⌘← / → | Fold / unfold code block |
| Shortcut | Action |
⌃⇧↑ / ↓ | Add cursor above / below |
⌘⌥E | Insert next occurrence as cursor |
⌘⇧L | Select all occurrences of current symbol |
| Shortcut | Action |
⌘⇧A then Rename | Rename symbol across project (uses LSP, safe) |
⌘⇧A then Extract to Function | Pull selection into method |
| Shortcut | Action |
⌘\ | Toggle breakpoint at current line |
⌘Y | Activate / deactivate all breakpoints |
F6 | Step over |
F7 | Step into |
F8 | Step out |
⌃⌘Y | Continue |
⌘K | Clear console |
| Shortcut | Action |
⌥ + click symbol | Quick Help popover |
⌘⇧0 | Developer Documentation window |
⌃⌘? | Quick Help inspector |
| Shortcut | Action |
⌘2 | Source Control navigator |
⌥⌘C | Commit (opens commit sheet) |
| Shortcut | Action |
⌘⌥⏎ | ★ Open Assistant Editor (split view, e.g. show counterpart or preview) |
⌘⇧↩ | Close all editor splits except focused |
⌘\\` | Move focus between editor splits |
⌃⌘F | Full-screen toggle |
If you only memorize ten, make them these:
⌘⇧O — Open Quickly (jump to any file)
⌘⇧F — Find in workspace
⌘B / ⌘R / ⌘. — Build, Run, Stop
⌃6 — Jump to symbol in file
⌘0 — Hide navigator (more screen)
⌘/ — Toggle comment
⌘\\ — Toggle breakpoint
⌘⇧A — Code actions
⌘U — Run tests
⌘⇧K — Clean build folder
| Shortcut | Action |
⌘⌥P | Resume preview |
⌘⌥⏎ | Show preview |
⌘⌥⇧↩ | Refresh preview (when stuck) |
Xcode supports many emacs-style key bindings in its editor:
| Shortcut | Action |
⌃A | Move to start of line |
⌃E | Move to end of line |
⌃F / ⌃B | Forward / back one char |
⌃P / ⌃N | Previous / next line |
⌃D | Delete forward |
⌃K | Kill to end of line |
⌃Y | Yank (paste killed text) |
If you came from a terminal-heavy background, these reduce hand travel substantially.
Stick the 10-shortcut list on a sticky note next to your monitor for a week. After that, your hands know them.