Xcode logo

Xcode

Apple's IDE for iOS, macOS, watchOS, and tvOS development with Swift, simulators, and debugging tools

161 shortcuts

Visit website
Platform

Text editing

ActionShortcut
Cut+X
Copy+C
Paste+V
Delete backward+H
Delete forward+D
Delete to beginning of line+Backspace
Delete word backward+Backspace
Delete word forward+Del
ActionShortcut
Move up+P
Move backward+B
Move down+N
Move forward+F
Move to beginning of document+
Move to beginning of line+A
Move to end of document+
Move to end of line+E
Move backward a word++B
Move forward a word++F
Page down+V
Move backward extending selection++B
Move down extending selection++N
Move forward extending selection++F
Move left extending selection+
Move paragraph backward extending selection++
Move paragraph forward extending selection++
Move right extending selection+
Move subword backward extending selection++
Move subword forward extending selection++
Move to beginning of document extending selection++
Move to beginning of line extending selection++
Move to beginning of paragraph+A
Move to beginning of paragraph extending selection++A
Move to end of document extending selection++
Move to end of line extending selection++
Move to end of paragraph+E
Move to end of paragraph extending selection++E
Move up extending selection++P
Move word backward extending selection+++B
Move word forward extending selection+++F

Edit

ActionShortcut
Undo+Z
Redo++Z
Paste and match style+++V
Add to bookmarks+D
Go to line+L
Next completion+.
Select next placeholder+/
Edit all in scope++T
Special characters++T

Format

ActionShortcut
Copy style++C
Paste style++V
Center++|
Shift right+]
Shift left+[

Run

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

Build

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

Design

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

Project

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

Find

ActionShortcut
Preferencesor
Hide others⌥⌘H
TabTab
Find in project⇧⌘F
Single file find⌘F
Find & replace⌃⌘F
Find next⌘G
Find previous⇧⌘G
Use selection for find⌘E

File

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

View

ActionShortcut
Detail⌥⌘F
Zoom editor out fully⇧⌥⌘E
Next file⇧⌥⌘→
Previous file⇧⌥⌘←
Switch to header/source⌥⌘↑
Reveal in group tree⇧⌥⌘T

Code Folding

ActionShortcut
Fold⌃⌘←
Unfold⌃⌘→
Unfold all⌃U
Fold methods/functions++
Unfold methods/functions⌃⌘↓
Fold comment blocks⇧⌃⌘↑
Unfold comment blocks⇧⌃⌘↓
Focus follows selection⌥⌃⌘F

Misc

ActionShortcut
Show spelling & grammar⇧⌘:
Check spelling⌘;
Minimize⌘M
Minimize all⌥⌘M
Organizer⌃⌘O
Developer documentation⇧⌥⌘/
Quick help⇧⌃⌘/
Center selection of visible area⌃L
Close split⌘'
Code sense complete listor
Code sense previous placeholder⇧⌃/
Delete subword backward⌃BACKSPACE
Delete to mark⌃W
Execute selection & replace with output⌥⌃R
Execute selection inserting output⌃R
Execute selection sending output to alert panel⇧⌥⌃R
Indent selection⌃I
Insert newline without extra action⌥↵
Pop bookmarks popup⌃4
Pop breakpoints popup⌃5
Pop included headers popup⌃3
Pop loaded files popup⌃1
Pop navigator popup⌃6
Pop symbols popup⌃2
Select to mark⌃X⌃M
Send interrupt⌃C
Set mark⌃[SPACE]
Split vertically⇧⌘"
Swap with mark⌃X⌃X
Transpose⌃T
Yank⌃Y