Xcode shortcuts
- 62 shortcuts
- 8 sections
- Development
Your answer helps keep this page right.
Do these shortcuts work for you?
The core Xcode loop is Build, Run and Test. Clean Build Folder deletes cached build products, which fixes many build errors that make no sense. In the editor, Edit All in Scope renames a variable everywhere it is used in the current scope.
Start with these
- Build
- Run
- Test
- Clean Build Folder
- Find in Project
- Comment/Uncomment
Tips for Xcode
- Find in Project ⇧⌘F searches every file in the workspace, not only the open one.
- Re-indent Code ⌃I fixes the indentation of the selected lines.
- Quick Help ⌘? shows the documentation summary for the symbol at the cursor.
Jump to section
General5
| Action | Shortcut |
|---|---|
| Preferences | |
| Documentation | |
| Console | |
| Documentation for Selection | |
| Quick Help |
Build & Run9
| Action | Shortcut |
|---|---|
| Build | |
| Analyze | |
| Run | |
| Profile | |
| Test | |
| Clean Build Folder | |
| Clear Console | |
| Stop | |
| Run Without Building |
Code Editing10
| Action | Shortcut |
|---|---|
| Show Completions | |
| Next Completion | |
| Accept Completion | |
| Next Placeholder | |
| Previous Placeholder | |
| Comment/Uncomment | |
| Fold Method/Class | |
| Unfold Method/Class | |
| Edit All in Scope | |
| Re-indent Code |
Debugging4
| Action | Shortcut |
|---|---|
| Next Issue | |
| Fix Next Issue | |
| Toggle Breakpoint | |
| Activate Breakpoints |
Libraries4
| Action | Shortcut |
|---|---|
| File Template | |
| Code Snippet | |
| Object Library | |
| Media Library |
Interface12
| Action | Shortcut |
|---|---|
| Switch Navigators | |
| Switch Inspectors | |
| Toggle Navigator | |
| Toggle Inspector | |
| Filter in Navigator | |
| Filter in Library | |
| Show Standard Editor | |
| Show Assistant Editor | |
| Show Version Editor | |
| Toggle Debug Area | |
| Reveal in Project Navigator | |
| Show Library |
Report a problem
GitHub is public. Email is private.
Related resources
More Development shortcuts
Explore more macOS apps
Frequently Asked Questions
How many keyboard shortcuts does Xcode have on macOS?
Xcode has 62 keyboard shortcuts on macOS, organized into 8 sections: General, Build & Run, Code Navigation, Code Editing, and more. This page lists all of them with searchable, organized shortcut tables.
Which Xcode shortcuts should I learn first?
Start with Build (⌘B), Run (⌘R), Test (⌘U), Clean Build Folder (⇧⌘K), Find in Project (⇧⌘F), Comment/Uncomment (⌘/). The sections on this page list the rest.
Can I download Xcode shortcuts as a PDF?
Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 62 Xcode shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.
Do these Xcode shortcuts work on all Mac keyboards?
Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.
Maintained by Vladik Didyk
Access Xcode shortcuts from your menu bar
KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.
