General

Action Shortcut
Preferences Cmd,N/AN/A
New File CmdNN/AN/A
New Project CmdShiftNN/AN/A
Open File CmdON/AN/A
Open Quickly CmdShiftON/AN/A
Save CmdSN/AN/A
Close Window CmdWN/AN/A
Close Tab CmdShiftWN/AN/A
Show Documentation CmdShift0N/AN/A
Quick Help for Selected Symbol CmdShift?N/AN/A

Editor

Action Shortcut
Show Completions CtrlSpaceN/AN/A
Edit All in Scope CmdCtrlEN/AN/A
Comment Selection Cmd/N/AN/A
Move Line Up CmdAlt[N/AN/A
Move Line Down CmdAlt]N/AN/A
Indent Selection Cmd]N/AN/A
Outdent Selection Cmd[N/AN/A
Balance Delimiters CmdShiftBN/AN/A
Re-Indent Code CtrlIN/AN/A
Fold Code Block CmdAltLeftN/AN/A
Unfold Code Block CmdAltRightN/AN/A
Fold All Methods/Functions CmdAltShiftLeftN/AN/A

Build & Run

Action Shortcut
Build CmdBN/AN/A
Run CmdRN/AN/A
Test CmdUN/AN/A
Profile CmdIN/AN/A
Analyze CmdShiftBN/AN/A
Clean Build Folder CmdShiftKN/AN/A
Stop Cmd.N/AN/A
Build for Running CmdShiftRN/AN/A
Run Without Building CmdCtrlRN/AN/A
Select Scheme CmdCtrl[N/AN/A

Debugging

Action Shortcut
Toggle Breakpoint Cmd\N/AN/A
Continue / Pause CmdCtrlYN/AN/A
Step Over F6N/AN/A
Step Into F7N/AN/A
Step Out F8N/AN/A
Activate / Deactivate Breakpoints CmdYN/AN/A
Show Breakpoint Navigator Cmd8N/AN/A
Open Debug Console CmdShiftYN/AN/A
Clear Console CmdKN/AN/A
Add Expression to Watch CmdShiftEN/AN/A

Source Control

Action Shortcut
Commit CmdAltCN/AN/A
Push CmdAltPN/AN/A
Pull CmdAltXN/AN/A
Show Source Control Navigator Cmd2N/AN/A
Refresh Source Control Status CmdAltShiftXN/AN/A
Discard All Changes CmdAltShiftDN/AN/A
Show Blame for Line CmdAltShiftBN/AN/A
Create Branch CmdAltBN/AN/A

Interface Builder

Action Shortcut
Show Object Library CmdShiftLN/AN/A
Show Assistant Editor CmdAltEnterN/AN/A
Toggle Canvas CmdAltPN/AN/A
Add New Constraints CmdAltShift=N/AN/A
Reset to Suggested Constraints CmdShift=N/AN/A
Update Frames CmdAlt=N/AN/A
Zoom to Fit CmdShift0N/AN/A
Zoom In Cmd=N/AN/A
Zoom Out Cmd-N/AN/A
Show Attributes Inspector CmdAlt4N/AN/A

Refactoring & Code

Action Shortcut
Rename Symbol CmdCtrlEN/AN/A
Extract to Method CmdAltMN/AN/A
Extract to Variable CmdAltVN/AN/A
Show Actions Menu CmdShiftAN/AN/A
Add Documentation CmdAlt/N/AN/A
Fix All Issues CmdCtrlFN/AN/A
Show Code Snippet Library CmdShiftLN/AN/A
Generate Memberwise Initializer CmdAltIN/AN/A
Minimap Toggle CmdCtrlShiftMN/AN/A
Show File Inspector CmdAlt1N/AN/A
No shortcuts found. Try a different search term.

Frequently Asked Questions

How do I quickly open a file by name in Xcode?
Press Cmd+Shift+O to bring up the Open Quickly dialog. Start typing a filename, class, method, or symbol name and Xcode will show matching results. Press Enter to open the selected result.
How do I build and run my Xcode project with keyboard shortcuts?
Press Cmd+B to build the project and Cmd+R to build and run it on the selected simulator or device. Use Cmd+. to stop the running app, and Cmd+Shift+K to clean the build folder if you encounter build issues.
How do I set and manage breakpoints in Xcode?
Press Cmd+\ to toggle a breakpoint on the current line. Use Cmd+Y to activate or deactivate all breakpoints at once. Press Cmd+8 to open the Breakpoint Navigator where you can view, edit, and manage all breakpoints in your project.
How do I customize keyboard shortcuts in Xcode?
Go to Xcode > Preferences > Key Bindings (or press Cmd+, and select the Key Bindings tab). You can search for any command and assign a new key combination by double-clicking the shortcut field. Xcode also supports importing custom key binding sets.
What are the most essential Xcode shortcuts to learn first?
Start with Cmd+B (build), Cmd+R (run), Cmd+Shift+O (open quickly), Cmd+/ (comment toggle), Cmd+\ (toggle breakpoint), and Cmd+Shift+F (find in project). These six shortcuts cover the core development workflow in Xcode.