Skip to content

Xcode Keyboard Shortcut Cheat Sheet

A cheat sheet of 59 keyboard shortcuts in Xcode. This application is only available for MacOS.

General

Action Shortcut
Preferences Cmd + ,
Documentation Cmd + Shift + 0
Console Cmd + Shift + C
Documentation for selected text Ctrl + Shift + /
Quick Help Cmd + Shift + /

Interface

Action Shortcut
Toggle Navigator Cmd + 1-7
Toggle Navigator Bar Cmd + 0
Filter in Navigator Cmd + Opt + J
Toggle Debug Area Cmd + Shift + Y
Show Standard Editor Cmd + Enter
Show Assistant Editor Cmd + Opt + Enter
Show Version Editor Cmd + Shift + Opt + Enter
Toggle Inspectors Cmd + Opt + 1-6
Toggle Utilities Bar Cmd + Opt + 0
Filter in Library Cmd + Opt + L

Code Editing

Action Shortcut
Show Completions Ctrl + Space
Next Completion Ctrl + .
Accept Completion Tab
Next Placeholder Ctrl + /
Previous Placeholder Ctrl + Shift + /
Comment Selection Cmd + /
Fold Method or Class Cmd + Opt + Left
Unfold Method or Class Cmd + Opt + Right
Edit All in Scope Cmd + E

Build and Run

Action Shortcut
Build Cmd + B
Analyze Cmd + Shift + B
Run Cmd + R
Profile Cmd + I
Test Cmd + U
Clean Cmd + Shift + K
Clear Console Cmd + K

File Navigation

Action Shortcut
Go Forward Cmd + Ctrl + Right
Go Back Cmd + Ctrl + Left
Quick Open Cmd + Shift + O
Show Related Items Ctrl + 1

Debugging

Action Shortcut
Next Issue Cmd + '
Previous Issue Cmd + Shift + '
Fix Next Issue Cmd + Ctrl + '
Fix Previous Issue Cmd + Ctrl + Shift + '
Add Breakpoint Cmd + \
Activate/Deactivate Breakpoints Cmd + Y

Code Navigation

Action Shortcut
End of Line Cmd + Right
Beginning of Line Cmd + Left
Top of File Cmd + Up
Bottom of File Cmd + Down
Next Word Opt + Right
Previous Word Opt + Left
Next Subword Ctrl + Right
Previous Subword Ctrl + Left
Center Selection Ctrl + L
Go to Line Cmd + L
Find in File Cmd + F
Find in Project Cmd + Shift + F
Find Next Cmd + G
Find Previous Cmd + Shift + G

Library

Action Shortcut
File Templates Cmd + Ctrl + Opt + 1
Code Snippets Cmd + Ctrl + Opt + 2
Objects Cmd + Ctrl + Opt + 3
Media Cmd + Ctrl + Opt + 4