This page is a complete keyboard shortcut reference for Xcode on macOS, covering all 62 shortcuts organized into 8 sections. Whether you’re new to Xcode or looking to master advanced features, this cheat sheet has every key combination you need — from basic editing and navigation to app-specific power-user actions.
Keyboard shortcuts are the fastest way to work in Xcode. Every time you use a shortcut instead of reaching for the mouse, you save a few seconds — and those seconds compound into hours over weeks and months. Start with the shortcuts you use most (copy, paste, undo, save), then gradually add app-specific ones as they become relevant to your workflow. Bookmark this page or download the PDF cheat sheet for quick reference.
Using keyboard shortcuts in Xcode reduces context switching between keyboard and mouse, helping you maintain focus and work more efficiently. Research shows that shortcut-driven workflows can save up to 8 working days per year compared to menu-driven navigation. On macOS, most Xcode shortcuts follow standard conventions — once you learn the modifier key patterns, new shortcuts become intuitive.
Tips for Learning Shortcuts
- Practice one new Xcode shortcut each day. Muscle memory builds faster when you focus on a single combination at a time rather than trying to learn them all at once.
- Print or bookmark this page for quick reference while working in Xcode. Having shortcuts visible nearby helps bridge the gap between looking them up and recalling them from memory.
- Start with the shortcuts you use most. In Xcode, common actions like copy, paste, undo, and save are worth learning first since they apply across nearly every workflow.
General5
| Action | Shortcut |
|---|---|
| Preferences | ⌘, |
| Documentation | ⇧⌘0 |
| Console | ⇧⌘C |
| Documentation for Selection | ⌃⌘? |
| Quick Help | ⌘? |
Build & Run9
| Action | Shortcut |
|---|---|
| Build | ⌘B |
| Analyze | ⇧⌘B |
| Run | ⌘R |
| Profile | ⌘I |
| Test | ⌘U |
| Clean Build Folder | ⇧⌘K |
| Clear Console | ⌘K |
| Stop | ⌘. |
| Run Without Building | ⌃⌘R |
Code Editing10
| Action | Shortcut |
|---|---|
| Show Completions | ⌃Space |
| Next Completion | ⌃. |
| Accept Completion | Tab |
| Next Placeholder | ⌃/ |
| Previous Placeholder | ⌃⇧/ |
| Comment/Uncomment | ⌘/ |
| Fold Method/Class | ⌥⌘← |
| Unfold Method/Class | ⌥⌘→ |
| Edit All in Scope | ⌃⌘E |
| Re-indent Code | ⌃I |
Debugging4
| Action | Shortcut |
|---|---|
| Next Issue | ⌘' |
| Fix Next Issue | ⌃⌘' |
| Toggle Breakpoint | ⌘\\ |
| Activate Breakpoints | ⌘Y |
Libraries4
| Action | Shortcut |
|---|---|
| File Template | ⌃⌥⌘1 |
| Code Snippet | ⌃⌥⌘2 |
| Object Library | ⌃⌥⌘3 |
| Media Library | ⌃⌥⌘4 |
Interface12
| Action | Shortcut |
|---|---|
| Switch Navigators | ⌘1-7 |
| Switch Inspectors | ⌥⌘1-6 |
| Toggle Navigator | ⌘0 |
| Toggle Inspector | ⌥⌘0 |
| Filter in Navigator | ⌥⌘J |
| Filter in Library | ⌥⌘L |
| Show Standard Editor | ⌘↩ |
| Show Assistant Editor | ⌥⌘↩ |
| Show Version Editor | ⌥⇧⌘↩ |
| Toggle Debug Area | ⇧⌘Y |
| Reveal in Project Navigator | ⇧⌘J |
| Show Library | ⇧⌘A |
Frequently Asked Questions
Access Xcode shortcuts from your menu bar
KeyShortcut detects the active app and shows its shortcuts instantly. No memorization needed.