Xcode Cheatsheet

// This might work...
http://ursooperduper.github.io/cheatsheets/xcode/
Xcode Cheatsheet

General

⌘ , Preferences
⇧ ⌘ 0 Documentation
⇧ ⌘ C Console
⌃ ⌘ ? Documentation for selected text
⌘ ? Quick Help
⌘ T New Tab
⇧ ⌘ T New Window
⌘ N New File
⇧ ⌘ N New Project
⌃ ⌘ N New Workspace
⌥ ⌘ N New Group
⌥ ⌘ A Add Files
⌘ O Open
⇧ ⌘ O Open Quickly
⌘ W Close Window
⌥ ⌘ W Close All Windows
⇧ ⌘ W Close Tab
⌥ ⇧ ⌘ W Close Other Tabs
⌃ ⌘ W Close Document
⌘ S Save
⌥ ⌘ S Save All
⌥ ⇧ ⌘ S Save Mulptiple
⇧ ⌘ S Save As

Code Editing

⌃ Space Show completions
⌃ . Next completion
Accept completion
⌃ / Next placeholder
⇧ ⌃ / Previous placeholder
⌘ / Comment selection
⌥ ⌘ ← Fold method/class
⌥ ⌘ → Unfold method/class
⌃ ⌘ E Edit all in scope

Build and Run

⌘ B Build
⇧ ⌘ B Analyze
⌘ R Run
⌘ I Profile
⌘ U Test
⇧ ⌘ K Clean
⌘ K Clear console

File Navigation

⌃ ⌘ → Go forward
⌃ ⌘ ← Go back
⇧ ⌘ O Open quickly
⌃ 1 Show related items

Debugging

⌘ ' Next issue
⌘ " Previous issue
⌃ ⌘ ' Fix next issue
⌃ ⌘ " Fix previous issue
⌘ \ Add breakpoint
⌘ Y Activate breakpoints

Code Navigation

⌘ → End of line
⌘ ← Beginning of line
⌘ ↑ Top of file
⌘ ↓ Bottom of file
⌥ → Next word
⌥ ← Previous word
⌃ → Next subword
⌃ ← Previous subword
⌃ L Center selection
⌘ L Goto line
⌘ F Find in file
⇧ ⌘ F Find in project
⌘ G Find next
⇧ ⌘ G Find previous

Libraries

⌃ ⌥ ⌘ 1 File template
⌃ ⌥ ⌘ 2 Code snippet
⌃ ⌥ ⌘ 3 Object
⌃ ⌥ ⌘ 4 Media

Version control

⌥ ⌘ C Commit
⌥ ⌘ X Update
⌃ ⌥ ⌘ X Update All
⌃ ⌘ S Create Snapshot

Edit

⌘ Z Undo
⇧ ⌘ Z Redo
⌘ X Cut
⌘ C Copy
⌘ V Paste
⌥ ⌘ V Paste Special
⌘ D Duplicate
⌘ A Select All
⇧ ⌘ F Find in Workspace
⌥ ⇧ ⌘ F Find and Replace in Workspace
⌘ F Find
⌥ ⌘ F Find and Replace
⌘ G Find Next
⇧ ⌘ G Find Previous
⌘ E Use Selection for Find
⇧ ⌘ E Use Selection for Replace
⌥ ⌘ J Filter in Navigator
⌥ ⌘ L Filter in Library
⌃ ⇧ ⌘ T Show Fonts
⌘ : Show Spelling and Grammar

View

⌘ (1-7) Switch Navigators
⌘ 0 Toggle Navigators
⌥ ⌘ J Filter in Navigator
⌘ ↩ Show Standard Editor
⌥ ⌘ ↩ Show Assistant Editor
⌥ ⇧ ⌘ ↩ Show Version Editor
⇧ ⌘ Y Toggle Debug Area
⌥ ⌘ (1-6) Switch Inspectors
⌥ ⌘ 0 Toggle Utilities
⌥ ⌘ L Filter in Library
⌘ 1 Project
⌘ 2 Symbol
⌘ 3 Search
⌘ 4 Issue
⌘ 5 Debug
⌘ 6 Breakpoint
⌘ 7 Log
⌘ 0 Show Navigator
⌘ ↩ Standard
⌥ ⌘ ↩ Assistant`
⌥ ⇧ ⌘ ↩ Version
⌃ 1 Show Related Items
⌃ 2 Show Previous History
⌃ ⌘ 2 Show Previous Files History
⌃ 3 Show Next History
⌃ ⌘ 3 Show Next Files History
⌃ 4 Show Top Level Items
⌃ 5 Show Group Files
⌃ 6 Show Document Items
⌃ 7 Show Issues
⌃ ⇧ ⌘ W Remove Assistant Editor
⌥ ⇧ ⌘ Z Reset Editor
⇧ ⌘ Y Show Debug Area

Navigate

⌘ L Reveal in Project Navigator
⌘ < Open in Adjaent Editor
⌃ ⌘ → Go Forward
⌃ ⌥ ⌘ → Go Forward in Alternate Editor
⌃ ⌘ ← Go Back
⌃ ⌥ ⌘ ← Go Back in Alternate Editor
⌘ J Jump to Selection
⇧ ⌘ D Jump to Definition
⌥ ⌘ K Move Focus to Next Area
⌥ ⇧ ⌘ K Move Focus to Previous Area

Source Editor

⌃ ⌘ ↑ Jump to Counterpart
⇧ ⌘ J Jump To
⌃ / Jump to Next Placeholder
⌃ ? Jump to Previous Placeholder
⌘ ' Jump to Next Issue
⌃ ⌘ ' Jump and Fix Next Issue
⌘ " Jump to Previous Issue
⌃ ⌘ " Jump and Fix Previous Issue

Data Model

⌃ ⌘ A Add Attribute
⌃ ⌘ R Add Relationship

Interface Builder

⌘ [ Align Left Edges
⌘ ] Align Right Edges
⌘ = Size to Fit
⌘ _ Add Horizontal Guide
⌘ | Add Vertical Guide

Source Code

⌃ \ Show Completions
⌃ ⌘ E Edit All in Scope
⌃ ⌘ F Fix All in Scope
⌃ ⌘ M Show All Issues
⌘ ] Shift Right
⌘ [ Shift Left
⌥ ⌘ [ Move Line Up
⌥ ⌘ ] Move Line Down
⌘ / Comment Selection
⌥ ⌘ ← Fold
⌥ ⌘ → Unfold
⌥ ⇧ ⌘ ← Fold Methods and Functions
⌥ ⇧ ⌘ → Unfold Methods and Functions
⌃ ⇧ ⌘ ← Fold Comment Blocks
⌃ ⇧ ⌘ → Unfold Comment Blocks

Product

⌘ R Run
⌘ T Test
⌘ I Profile
⌃ ⌘ B Analyze
⇧ ⌘ R Build for Running
⇧ ⌘ U Build for Testing
⇧ ⌘ I Build for Profiling
⌃ ⌘ R Run Without Building
⌃ ⌘ U Test Without Building
⌃ ⌘ I Profile Without Building
⌘ B Build
⇧ ⌘ K Clean
⌥ ⇧ ⌘ K Clean Build Folder
⌘ . Stop

Debug

⌃ ⌘ Y Pause
F7 Step Into
F6 Step Over
F8 Step Out
⌃ ⇧ F7 Step Into Thread
⌃ F7 Step Into Instruction
⌃ ⇧ F6 Step Over Thread
⌃ F6 Step Over Instruction
⌘ \ Add Breakpoint at Current Line
⌘ Y Toggle Breakpoints
⌘ K Clear Console

Window

⌘ M Minimize
⌘ } Select Next Tab
⌘ { Select Previous Tab
⇧ ⌘ 1 Welcome to Xcode
⇧ ⌘ 2 Organizer

Legend

Shift
Control
Option
Command
Return
Escape
Delete
Tab

General

⌘ , Preferences
⇧ ⌘ 0 Documentation
⇧ ⌘ C Console
⌃ ⌘ ? Documentation for selected text
⌘ ? Quick Help
⌘ T New Tab
⇧ ⌘ T New Window
⌘ N New File
⇧ ⌘ N New Project
⌃ ⌘ N New Workspace
⌥ ⌘ N New Group
⌥ ⌘ A Add Files
⌘ O Open
⇧ ⌘ O Open Quickly
⌘ W Close Window
⌥ ⌘ W Close All Windows
⇧ ⌘ W Close Tab
⌥ ⇧ ⌘ W Close Other Tabs
⌃ ⌘ W Close Document
⌘ S Save
⌥ ⌘ S Save All
⌥ ⇧ ⌘ S Save Mulptiple
⇧ ⌘ S Save As

Code Editing

⌃ Space Show completions
⌃ . Next completion
Accept completion
⌃ / Next placeholder
⇧ ⌃ / Previous placeholder
⌘ / Comment selection
⌥ ⌘ ← Fold method/class
⌥ ⌘ → Unfold method/class
⌃ ⌘ E Edit all in scope

Build and Run

⌘ B Build
⇧ ⌘ B Analyze
⌘ R Run
⌘ I Profile
⌘ U Test
⇧ ⌘ K Clean
⌘ K Clear console

File Navigation

⌃ ⌘ → Go forward
⌃ ⌘ ← Go back
⇧ ⌘ O Open quickly
⌃ 1 Show related items

Debugging

⌘ ' Next issue
⌘ " Previous issue
⌃ ⌘ ' Fix next issue
⌃ ⌘ " Fix previous issue
⌘ \ Add breakpoint
⌘ Y Activate breakpoints

Code Navigation

⌘ → End of line
⌘ ← Beginning of line
⌘ ↑ Top of file
⌘ ↓ Bottom of file
⌥ → Next word
⌥ ← Previous word
⌃ → Next subword
⌃ ← Previous subword
⌃ L Center selection
⌘ L Goto line
⌘ F Find in file
⇧ ⌘ F Find in project
⌘ G Find next
⇧ ⌘ G Find previous

Libraries

⌃ ⌥ ⌘ 1 File template
⌃ ⌥ ⌘ 2 Code snippet
⌃ ⌥ ⌘ 3 Object
⌃ ⌥ ⌘ 4 Media

Version control

⌥ ⌘ C Commit
⌥ ⌘ X Update
⌃ ⌥ ⌘ X Update All
⌃ ⌘ S Create Snapshot

Edit

⌘ Z Undo
⇧ ⌘ Z Redo
⌘ X Cut
⌘ C Copy
⌘ V Paste
⌥ ⌘ V Paste Special
⌘ D Duplicate
⌘ A Select All
⇧ ⌘ F Find in Workspace
⌥ ⇧ ⌘ F Find and Replace in Workspace
⌘ F Find
⌥ ⌘ F Find and Replace
⌘ G Find Next
⇧ ⌘ G Find Previous
⌘ E Use Selection for Find
⇧ ⌘ E Use Selection for Replace
⌥ ⌘ J Filter in Navigator
⌥ ⌘ L Filter in Library
⌃ ⇧ ⌘ T Show Fonts
⌘ : Show Spelling and Grammar

View

⌘ (1-7) Switch Navigators
⌘ 0 Toggle Navigators
⌥ ⌘ J Filter in Navigator
⌘ ↩ Show Standard Editor
⌥ ⌘ ↩ Show Assistant Editor
⌥ ⇧ ⌘ ↩ Show Version Editor
⇧ ⌘ Y Toggle Debug Area
⌥ ⌘ (1-6) Switch Inspectors
⌥ ⌘ 0 Toggle Utilities
⌥ ⌘ L Filter in Library
⌘ 1 Project
⌘ 2 Symbol
⌘ 3 Search
⌘ 4 Issue
⌘ 5 Debug
⌘ 6 Breakpoint
⌘ 7 Log
⌘ 0 Show Navigator
⌘ ↩ Standard
⌥ ⌘ ↩ Assistant`
⌥ ⇧ ⌘ ↩ Version
⌃ 1 Show Related Items
⌃ 2 Show Previous History
⌃ ⌘ 2 Show Previous Files History
⌃ 3 Show Next History
⌃ ⌘ 3 Show Next Files History
⌃ 4 Show Top Level Items
⌃ 5 Show Group Files
⌃ 6 Show Document Items
⌃ 7 Show Issues
⌃ ⇧ ⌘ W Remove Assistant Editor
⌥ ⇧ ⌘ Z Reset Editor
⇧ ⌘ Y Show Debug Area

Navigate

⌘ L Reveal in Project Navigator
⌘ < Open in Adjaent Editor
⌃ ⌘ → Go Forward
⌃ ⌥ ⌘ → Go Forward in Alternate Editor
⌃ ⌘ ← Go Back
⌃ ⌥ ⌘ ← Go Back in Alternate Editor
⌘ J Jump to Selection
⇧ ⌘ D Jump to Definition
⌥ ⌘ K Move Focus to Next Area
⌥ ⇧ ⌘ K Move Focus to Previous Area

Source Editor

⌃ ⌘ ↑ Jump to Counterpart
⇧ ⌘ J Jump To
⌃ / Jump to Next Placeholder
⌃ ? Jump to Previous Placeholder
⌘ ' Jump to Next Issue
⌃ ⌘ ' Jump and Fix Next Issue
⌘ " Jump to Previous Issue
⌃ ⌘ " Jump and Fix Previous Issue

Data Model

⌃ ⌘ A Add Attribute
⌃ ⌘ R Add Relationship

Interface Builder

⌘ [ Align Left Edges
⌘ ] Align Right Edges
⌘ = Size to Fit
⌘ _ Add Horizontal Guide
⌘ | Add Vertical Guide

Source Code

⌃ \ Show Completions
⌃ ⌘ E Edit All in Scope
⌃ ⌘ F Fix All in Scope
⌃ ⌘ M Show All Issues
⌘ ] Shift Right
⌘ [ Shift Left
⌥ ⌘ [ Move Line Up
⌥ ⌘ ] Move Line Down
⌘ / Comment Selection
⌥ ⌘ ← Fold
⌥ ⌘ → Unfold
⌥ ⇧ ⌘ ← Fold Methods and Functions
⌥ ⇧ ⌘ → Unfold Methods and Functions
⌃ ⇧ ⌘ ← Fold Comment Blocks
⌃ ⇧ ⌘ → Unfold Comment Blocks

Product

⌘ R Run
⌘ T Test
⌘ I Profile
⌃ ⌘ B Analyze
⇧ ⌘ R Build for Running
⇧ ⌘ U Build for Testing
⇧ ⌘ I Build for Profiling
⌃ ⌘ R Run Without Building
⌃ ⌘ U Test Without Building
⌃ ⌘ I Profile Without Building
⌘ B Build
⇧ ⌘ K Clean
⌥ ⇧ ⌘ K Clean Build Folder
⌘ . Stop

Debug

⌃ ⌘ Y Pause
F7 Step Into
F6 Step Over
F8 Step Out
⌃ ⇧ F7 Step Into Thread
⌃ F7 Step Into Instruction
⌃ ⇧ F6 Step Over Thread
⌃ F6 Step Over Instruction
⌘ \ Add Breakpoint at Current Line
⌘ Y Toggle Breakpoints
⌘ K Clear Console

Window

⌘ M Minimize
⌘ } Select Next Tab
⌘ { Select Previous Tab
⇧ ⌘ 1 Welcome to Xcode
⇧ ⌘ 2 Organizer
Legend
Shift Control Option Command Return Escape Delete Tab