Complete Xcode keyboard shortcuts reference — 66 shortcuts across 7 categories. Quick reference cheat sheet for macOS.
Xcode is Mac-only, so every binding on this page is written with Cmd, Option and Ctrl as Apple labels them. The shortcuts cluster around one loop — edit, build, run, read the issue, jump to it — and the ones that shave seconds off that loop are worth more than any of the panel toggles.
| Shortcut | Action |
|---|---|
| Cmd + B | Build |
| Cmd + R | Run |
| Ctrl + Cmd + R | Run Without Building |
| Cmd + . | Stop |
| Cmd + U | Test |
| Ctrl + Cmd + U | Test Without Building |
| Cmd + I | Profile |
| Shift + Cmd + B | Analyze |
| Shift + Cmd + K | Clean |
| Option + Shift + Cmd + K | Clean Build Folder |
| Cmd + < | Edit Scheme |
| Shortcut | Action |
|---|---|
| Shift + Cmd + O | Open Quickly |
| Cmd + L | Go to Line |
| Ctrl + Cmd + J | Jump to Definition |
| Ctrl + Cmd + Left | Go Back |
| Ctrl + Cmd + Right | Go Forward |
| Ctrl + Cmd + Up | Jump to Counterpart |
| Shift + Cmd + J | Reveal in Project Navigator |
| Cmd + ' | Jump to Next Issue |
| Cmd + " | Jump to Previous Issue |
| Ctrl + 6 | Show Document Items |
| Shortcut | Action |
|---|---|
| Cmd + 0 | Show/Hide Navigator |
| Cmd + 1 | Project Navigator |
| Option + Cmd + 0 | Show/Hide Inspectors |
| Shift + Cmd + Y | Show/Hide Debug Area |
| Shift + Cmd + L | Show Library |
| Shift + Cmd + C | Activate Console |
| Shift + Cmd + 0 | Developer Documentation |
| Cmd + Return | Editor Only |
| Ctrl + Option + Cmd + Return | Assistant Editor |
| Option + Cmd + Return | Show Canvas |
| Option + Cmd + P | Resume Preview |
| Shortcut | Action |
|---|---|
| Cmd + / | Comment Selection |
| Ctrl + I | Re-Indent |
| Cmd + ] | Shift Right |
| Cmd + [ | Shift Left |
| Option + Cmd + ] | Move Line Down |
| Option + Cmd + [ | Move Line Up |
| Ctrl + Space | Show Completions |
| Ctrl + Cmd + E | Edit All in Scope |
| Option + Cmd + / | Add Documentation |
| Cmd + F | Find |
| Option + Cmd + F | Find and Replace |
| Shift + Cmd + F | Find in Workspace |
| Cmd + G | Find Next |
| Cmd + E | Use Selection for Find |
| Shortcut | Action |
|---|---|
| Option + Cmd + Left | Fold |
| Option + Cmd + Right | Unfold |
| Option + Shift + Cmd + Left | Fold Methods & Functions |
| Option + Shift + Cmd + Right | Unfold Methods & Functions |
| Shortcut | Action |
|---|---|
| Cmd + \ | Toggle Breakpoint |
| Cmd + Y | Activate/Deactivate Breakpoints |
| Ctrl + Cmd + Y | Pause/Continue |
| F6 | Step Over |
| F7 | Step Into |
| F8 | Step Out |
| Cmd + K | Clear Console |
| Shortcut | Action |
|---|---|
| Cmd + N | New File |
| Shift + Cmd + N | New Project |
| Option + Cmd + N | New Group |
| Option + Cmd + A | Add Files |
| Cmd + S | Save |
| Option + Cmd + S | Save All |
| Cmd + , | Settings |
| Cmd + T | New Tab |
| Shift + Cmd + 2 | Devices and Simulators |
Cmd + B builds, Cmd + R builds and runs, and Cmd + . stops whatever is running. Cmd + U runs the test target; the Ctrl variants — Ctrl + Cmd + R and Ctrl + Cmd + U — skip the build step and reuse the last binary, which is the right choice when you only changed a scheme argument. When a build fails, Cmd + ' jumps to the next issue in the editor and Cmd + " to the previous one, so you can walk through compiler errors without opening the Issue navigator. Shift + Cmd + K cleans, and Option + Shift + Cmd + K cleans the whole build folder, which is the one that actually fixes stale-module problems.
Shift + Cmd + O is Open Quickly: type part of a file, type, or symbol name and jump to it, which replaces the Project navigator for anyone who knows what they are looking for. Ctrl + Cmd + J takes you to where the symbol under the cursor is declared, Ctrl + Cmd + Left goes back, and Ctrl + Cmd + Up switches between a file and its counterpart — header and implementation in Objective-C, or a view and its test in Swift projects that follow the convention. Shift + Cmd + J reveals the current file in the navigator when you have lost track of where it lives.
Cmd + 0 and Option + Cmd + 0 hide the left navigator and right inspectors, and Shift + Cmd + Y toggles the debug area at the bottom; on a laptop, hiding all three is the difference between a usable editor and a postage stamp. Cmd + Return returns to a single editor after opening the assistant with Ctrl + Option + Cmd + Return. In the editor, Ctrl + Cmd + E is Edit All in Scope: it selects every occurrence of the symbol under the cursor within its scope so a rename is one edit, and Ctrl + I re-indents the selection according to the project settings.
Cmd + \ toggles a breakpoint on the current line and Cmd + Y enables or disables all breakpoints at once without removing them, which is how you get a quick clean run without losing your setup. The stepping keys are F6 for step over, F7 step into and F8 step out — a different assignment from the JetBrains and Visual Studio convention — and Cmd + K clears the console.
Cmd + R builds and then runs. Ctrl + Cmd + R runs the existing build without compiling, which is faster when the source has not changed.
Shift + Cmd + O (Open Quickly). It matches partial file names, types and symbols.
Shift + Cmd + K cleans the current target only. Option + Shift + Cmd + K cleans the whole build folder, including cached modules.
Xcode › Settings › Key Bindings lists every command with its binding and lets you search or change them.
Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"