Xcode keyboard shortcuts for Mac
The 37 Xcode shortcuts people reach for most, grouped by task. Keys are shown as macOS prints them: ⌘ Command, ⌥ Option, ⇧ Shift, ⌃ Control.
On most Mac keyboards F-keys need Fn unless “Use F1, F2, etc. keys as standard function keys” is on.
Updated
Build and run
| Build and run | ⌘R |
| Build | ⌘B |
| Stop | ⌘. |
| Run tests | ⌘U |
| Profile in Instruments | ⌘I |
| Open the scheme menu | ⌃0 |
| Open the run destination menu | ⌃⇧0 |
Find and navigate
| Open Quickly | ⇧⌘O |
| Find in the file | ⌘F |
| Find and replace in the file | ⌥⌘F |
| Find in the whole project | ⇧⌘F |
| Open the Library | ⇧⌘L |
| New editor tab | ⌘T |
Editing
| Comment or uncomment lines | ⌘/ |
| Indent right | ⌘] |
| Indent left | ⌘[ |
| Move line up | ⌥⌘[ |
| Move line down | ⌥⌘] |
| Show code completion | ⌃Space |
| Next placeholder | Tab |
| Previous placeholder | ⇧Tab |
| Add a cursor on the line above (column select) | ⌃⇧↑ |
| Add a cursor on the line below (column select) | ⌃⇧↓ |
Debugging
| Add a breakpoint on the current line | ⌘\ |
| Turn breakpoints on or off | ⌘Y |
| Pause or continue | ⌃⌘Y |
| Step over | F6 |
| Step into | F7 |
| Step out | F8 |
| Show or hide the debug area | ⇧⌘Y |
| Clear the console | ⌘K |
Previews, AI and settings
| Show or hide the preview canvas | ⌥⌘Return |
| Resume the preview | ⌥⌘P |
| Open the Coding Assistant | ⌘0 |
| Show coding tools in the editor | ⌥⌘0 |
| Show the Quick Help inspector | ⌥⌘3 |
| Open Xcode settings | ⌘, |
Checked against Apple’s documentation (Xcode 26 — menu commands checked against Xcode’s own menus on 6 October 2026; editor keys from Apple’s developer documentation): developer.apple.com/documentation/xcode/finding-and-ref…, developer.apple.com/documentation/xcode/fixing-issues-i…, developer.apple.com/documentation/xcode/editing-source-…, developer.apple.com/documentation/xcode/analyzing-the-p…, developer.apple.com/documentation/xcode/writing-code-wi…, developer.apple.com/documentation/xcode/using-coding-in…, developer.apple.com/documentation/xcode/writing-symbol-…, developer.apple.com/documentation/xcode-release-notes/x…, developer.apple.com/documentation/xcode-release-notes/x…, developer.apple.com/tutorials/app-dev-training/decoding…, developer.apple.com/tutorials/app-dev-training/using-st…, help.apple.com/xcode/mac/current/, help.apple.com/xcode/mac/current/, help.apple.com/xcode/mac/current/, help.apple.com/xcode/mac/current/, developer.apple.com/library/archive/documentation/IDEs/…. Shortcuts can change between versions and with your own key settings. Spotted a mistake? support@remolo.app.
The same keys on your iPhone
Remolo turns your iPhone into a panel of buttons for your Mac. This set switches on by itself when Xcode is in front, so the keys you use most are one tap away — no reaching across the desk.
- Run⌘R
- Stop⌘.
- Build⌘B
- Test⌘U
- Open Quickly⇧⌘O
- Comment⌘/
- Breakpoint⌘\
- Continue⌃⌘Y
- Step OverF6
- Step IntoF7
- Step OutF8
- Canvas⌥⌘Return
With the next Remolo update you’ll add this set with one tap from this page. Until then, build it in Buttons → Edit, or start from the ready-made profiles in Remolo’s gallery. Button profiles are part of Remolo Pro.
More Mac apps
- Ableton Live shortcuts
- Adobe Illustrator shortcuts
- Adobe Lightroom Classic shortcuts
- Adobe Photoshop shortcuts
- Adobe Premiere Pro shortcuts
- Blender shortcuts
- DaVinci Resolve shortcuts
- Figma shortcuts
- Final Cut Pro shortcuts
- Finder shortcuts
- Google Chrome shortcuts
- Keynote shortcuts
- Logic Pro shortcuts
- Microsoft Excel shortcuts
- Microsoft PowerPoint shortcuts
- Numbers shortcuts
- OBS Studio shortcuts
- Pages shortcuts
- Safari shortcuts
- Slack shortcuts
- Spotify shortcuts
- Visual Studio Code shortcuts
- Zoom Workplace shortcuts