Skip to main content

Xcode shortcuts

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.

SetappAd
A shortcut to the best Mac apps

An essential toolbox for macOS and iOS.

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

ActionShortcut
Preferences
Documentation
Console
Documentation for Selection
Quick Help

Build & Run9

ActionShortcut
Build
Analyze
Run
Profile
Test
Clean Build Folder
Clear Console
Stop
Run Without Building

Code Navigation14

ActionShortcut
End of Line
Beginning of Line
Top of File
Bottom of File
Next Word
Previous Word
Next Subword
Previous Subword
Center Selection
Go to Line
Find in File
Find in Project
Find Next
Find Previous

Code Editing10

ActionShortcut
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

File Navigation4

ActionShortcut
Go Forward
Go Back
Open Quickly
Show Related Items

Debugging4

ActionShortcut
Next Issue
Fix Next Issue
Toggle Breakpoint
Activate Breakpoints

Libraries4

ActionShortcut
File Template
Code Snippet
Object Library
Media Library

Interface12

ActionShortcut
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.

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

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.