XCode Cheatsheet

Text Editing Beginner

⌘X
Cut
⌘C
Copy
⌘V
Paste
^H
Delete backward
^D
Delete forward
⌘BACKSPACE
Delete to beginning of line
^BACKSPACE
Delete word backward
^DEL
Delete word forward

Text Navigation Beginner

^P
Move up
^B
Move backward
^N
Move down
^F
Move forward
⌘UP
Move to beginning of document
^A
Move to beginning of line
⌘DOWN
Move to end of document
^E
Move to end of line
^⌥B
Move backward a word
^⌥F
Move forward a word
^V
Page down

Text Navigation Intermediate I

^⇧B
Move backward extending selection
^⇧N
Move down extending selection
^⇧F
Move forward extending selection
⇧LEFT
Move left extending selection
⌥⇧UP
Move paragraph backward extending selection
⌥⇧DOWN
Move paragraph forward extending selection
⇧RIGHT
Move right extending selection
^⇧LEFT
Move subword backward extending selection
^⇧RIGHT
Move subword forward extending selection
⌘⇧UP
Move to beginning of document extending selection

Text Navigation Intermediate II

⌘⇧LEFT
Move to beginning of line extending selection
^A
Move to beginning of paragraph
^⇧A
Move to beginning of paragraph extending selection
⌘⇧DOWN
Move to end of document extending selection
⌘⇧RIGHT
Move to end of line extending selection
^E
Move to end of paragraph
^⇧E
Move to end of paragraph extending selection
^⇧P
Move up extending selection
^⌥⇧B
Move word backward extending selection
^⌥⇧F
Move word forward extending selection

Edit

⌘Z
Undo
⌘⇧Z
Redo
⌘X
Cut
⌘C
Copy
⌘V
Paste
⌘⌥⇧V
Paste and match style
⌘D
Add to bookmarks
⌘L
Go to line
^.
Next completion
^/
Select next placeholder
⌘^T
Edit all in scope
⌘⌥T
Special characters

Format

⌘⌥C
Copy style
⌘⌥V
Paste style
⌘⇧|
Center
⌘]
Shift right
⌘[
Shift left

Run

⌘⌥↵
Run
⌘⌥R
Run - breakpoints off
⌘⌥Y
Debug - breakpoints on
⌘⇧↵
Stop
⌘⇧Y
Debugger
⌘⇧R
Console
⌘^⌥R
Clear console
⌘⌥B
Show breakpoints
⌘^\
Activate breakpoints
⌘\
Add breakpoint at current line
⌘⌥\
Enable breakpoint at current line
⌘⌥P
Pause
⌘⇧I
Step into
⌘⌥⇧I
Step into instruction
⌘⇧O
Step over
⌘⌥⇧O
Step over instruction
⌘^⌥UP
Next thread
⌘^⌥DOWN
Previous thread

Build

⌘↵
Build and run
⌘R
Build and run - breakpoints off
⌘Y
Build and run - breakpoint on
⌘⇧K
Clean
⌘=
Next build warning or error
⌘⇧+
Previous build warning or error
⌘K
Compile

Design

⌘^B
Show model browser
⌘^⇧F
Diagram bring to front
⌘^⇧B
Diagram bring to back
⌘^L
Diagram lock
⌘^⇧L
Diagram unlock
⌘^⇧+
Diagram zoom in
⌘^=
Diagram zoom to fit
⌘^G
Force directed layout
⌘^H
Hierarchical layout
⌘^A
Add attribute
⌘^R
Add relationship

Project

⌘0
Go to project
⌘⇧C
Class browser
⌘⌥G
Group
⌘⌥⇧G
Ungroup
⌘⌥A
Add to project
⌘⌥E
Edit active target
⌘⌥X
Edit active executable

Find

⌘,
Preferences
⌘⌥H
Hide others
TAB
Tab
⌘⇧F
Find in project
⌘F
Single file find
⌘^F
Find & replace
⌘G
Find next
⌘⇧G
Find previous
⌘E
Use selection for find

File

⌘O
Open
⌘⌥O
Open in a separate editor
⌘⇧D
Open quickly
⌘⌥I
Show inspector
⌘⌥W
Close all
⌘^W
Close project
⌘S
Save
⌘⌥S
Save all
⌘⇧S
Save as
⌘⌥⇧S
Save copy as
⌘^S
Make snapshot

View

⌘⌥F
Detail
⌘⌥⇧E
Zoom editor out fully
⌘⌥⇧RIGHT
Next file
⌘⌥⇧LEFT
Previous file
⌘⌥UP
Switch to header/source
⌘⌥⇧T
Reveal in group tree

Code Folding

⌘^LEFT
Fold
⌘^RIGHT
Unfold
^U
Unfold all
⌘^UP
Fold methods/functions
⌘^DOWN
Unfold methods/functions
⌘^⇧UP
Fold comment blocks
⌘^⇧DOWN
Unfold comment blocks
⌘^⌥F
Focus follows selection

Misc I

⌘⇧:
Show spelling & grammar
⌘;
Check spelling
⌘M
Minimize
⌘⌥M
Minimize all
⌘^O
Organizer
⌘⌥⇧?
Developer documentation
⌘^⇧?
Quick help
^L
Center selection of visible area
⌘'
Close split
^,
Code sense complete list

Misc II

^⇧?
Code sense previous placeholder
^BACKSPACE
Delete subword backward
^W
Delete to mark
^⌥R
Execute selection & replace with output
^R
Execute selection inserting output
^⌥⇧R
Execute selection sending output to alert panel
^I
Indent selection
⌥↵
Insert newline without extra action
^4
Pop bookmarks popup
^5
Pop breakpoints popup

Misc III

^3
Pop included headers popup
^1
Pop loaded files popup
^6
Pop navigator popup
^2
Pop symbols popup
^X^M
Select to mark
^C
Send interrupt
^SPACE
Set mark
⌘⇧"
Split vertically
^X^X
Swap with mark
^T
Transpose
^Y
Yank
achievement-star