Wednesday, November 20, 2013

Xcode Keyboard Shortcuts

Xcode Keyboard Shortcuts and Gestures: Menu Command Shortcuts (By Menu)


Menu Command Shortcuts (By Menu)

Each table in this section lists the commands in an Xcode application menu and the keyboard shortcuts associated with each command. Entries appear in the order in which they appear in the menu. The following tables are available:

Table 1-1  Xcode menu command shortcuts
Command
Key Binding
Shortcut
About Xcode
Preferences…⌘,Command-,
Hide Xcode⌘ H,viCommand-H,fr
Hide Others⌥ ⌘ H,viOption-Command-H,fr
Show All
Quit Xcode⌘ Q,azCommand-Q

Table 1-2  File menu command shortcuts
Command
Key Binding
Shortcut
New Tab⌘TCommand-T
New Window⇧⌘TShift-Command-T
New File…⌘NCommand-N
New Target…
New Project…⇧⌘NShift-Command-N
New Workspace⌃⌘NControl-Command-N
New Group⌥⌘NOption-Command-N
New Group from Selection
Add Files…⌥⌘AOption-Command-A
Open…⌘OCommand-O,fr
Open Quickly…⇧⌘OShift-Command-O
Close Window⌘ In,plCommand-W,fr
Close All Windows⌥ ⌘ In,plOption-Command-W
Close Tab⇧ ⌘ In,plShift-Command-W
Close Other Tabs⌥ ⇧ ⌘ In,plOption-Shift-Command-W
Close Document^ ⌘ In,plControl-Command-W,it
Close Workspace
Save⌘ S,cebCommand-S
Save All⌥ ⌘ S,cebOption-Command-S
Save Multiple…⌥ ⇧ ⌘ S,cebOption-Shift-Command-S
Save As…⇧ ⌘ S,cebShift-Command-S
Revert…
Unlock…
Show in Finder
Open with External Editor
Workspace Settings…
Commit…⌥ ⌘ C,viOption-Command-C
Update…⌥⌘XOption-Command-X
Update All⌃⌥⌘XControl-Option-Command-X
Merge…
Discard Changes…
Add
Ignore
Mark as Resolved
Refresh Status
Show Repository Status
Repositories…
Create Snapshot…^ ⌘ S,cebControl-Command-S
Page Setup…⇧ ⌘ P,htShift-Command-P
Print…⌘ P,htCommand-P

Table 1-3  Edit menu command shortcuts
Command
Key Binding
Shortcut
Undo⌘ Z,plCommand-Z,fr
Redo⇧ ⌘ Z,plShift-Command-Z
Cut⌘XCommand-X
Copy⌘ C,viCommand-C
Paste⌘ V,csCommand-V,fr
Paste Special⌥ ⌘ V,csOption-Command-V,fr
Paste and Match Style⌥ ⇧ ⌘ V,csOption-Shift-Command-V
Duplicate⌘DCommand-D
Delete
Select All⌘ACommand-A
Find in Workspace…⇧ ⌘ F,isShift-Command-F
Find and Replace in Workspace…⌥ ⇧ ⌘ F,isOption-Shift-Command-F
Find…⌘ F,isCommand-F
Find and Replace…⌥ ⌘ F,isOption-Command-F
Find Next⌘ G,viCommand-G
Find Previous⇧ ⌘ G,viShift-Command-G
Use Selection for Find⌘ E,noCommand-E,fr
Use Selection for Replace⇧ ⌘ E,noShift-Command-E
Filter in Navigator⌥ ⌘ J,csOption-Command-J
Filter in Library⌥ ⌘ L,mtOption-Command-L,fr
Show Fonts⌃⇧⌘TControl-Shift-Command-T
Bold
Italics
Underline
Show Colors
Show Spelling and Grammar⌘:Command-:
Check Document Now
Check Spelling While Typing
Check Grammar With Spelling
Correct Spelling Automatically
Show Substitutions
Smart Copy/Paste
Smart Quotes
Smart Dashes
Smart Links
Data Detectors
Text Replacement
Make Upper Case
Make Lower Case
Capitalize
Start Speaking
Stop Speaking
Rename
Extract
Create Superclass
Move Up
Move Down
Encapsulate

Table 1-4  View menu command shortcuts
Command
Key Binding
Shortcut
Project⌘1Command-1
Symbol⌘2Command-2
Search⌘3Command-3
Issue⌘4Command-4
Debug⌘5Command-5
Breakpoint⌘6Command-6
Log⌘7Command-7
Show Navigator⌘0Command-0
Standard⌘↩Command-↩,fr
Assistant⌥⌘↩Option-Command-↩,fr
Version⌥⇧⌘↩Option-Shift-Command-↩
Show Related Items⌃1Control-1
Show Previous History⌃2Control-2
Show Previous Files History⌃⌘2Control-Command-2
Show Next History⌃3Control-3
Show Next Files History⌃⌘3Control-Command-3
Show Top Level Items⌃4Control-4
Show Group Files⌃5Control-5
Show Document Items⌃6Control-6
Show Issues⌃7Control-7
Add Assistant Editor
Remove Assistant Editor^ ⇧ ⌘ In,plControl-Shift-Command-W
Reset Editor⌥ ⇧ ⌘ Z,plOption-Shift-Command-Z
Assistant Editors on Right
Assistant Editors on Bottom
Assistant Editors on Left
Assistant Editors on Top
Assistant Editors Stacked Horizontally
Assistant Editors Stacked Vertically
Assistant Editors Stacked Horizontally Right to Left
Assistant Editors Stacked Vertically Bottom to Top
Show Toolbar Bar
Show Tab Bar
Show Debug area⇧ ⌘ The,cyShift-Command-Y

Table 1-5  Navigate menu command shortcuts
Context
Command
Key Binding
Shortcut
Reveal in Project Navigator⌘ L,mtCommand-L,fr
Open in Adjacent Editor⌘<Command-<
Go Forward⌃⌘⇢Control-Command-Right Arrow
Go Forward in Alternate Editor⌃⌥⌘⇢Control-Option-Command-Right Arrow
Go Back⌃⌘⇠Control-Command-Left Arrow
Go Back in Alternate Editor⌃⌥⌘⇠Control-Option-Command-Left Arrow
Jump to Selection⌘ J,csCommand-J
Jump to Definition⇧⌘DShift-Command-D
Move Focus To Next Area⌥⌘KOption-Command-K
Move Focus To Previous Area⌥⇧⌘KOption-Shift-Command-K
Interface BuilderJump to Next Object with Clipped Content
Jump to Previous Object with Clipped Content
Source editorJump to Counterpart⌃⌘⇡Control-Command-Up Arrow
Jump To…⇧ ⌘ J,csShift-Command-J
Jump to Next Placeholder⌃/Control-/
Jump to Previous Placeholder⌃?Control-?
Jump to Next Issue⌘'Command-'
Jump and Fix Next Issue⌃⌘'Control-Command-'
Jump to Previous Issue⌘"Command-"
Jump and Fix Previous Issue⌃⌘"Control-Command-"

Table 1-6  Editor menu command shortcuts
Context
Command
Key Binding
Shortcut
Data modelShow Grid
Show Page Breaks
Add Entity
Add Fetch Request
Add Configuration
Add Attribute⌃⌘AControl-Command-A
Add Fetched Property
Add Relationship⌃⌘RControl-Command-R
Import…
Create NSManagedObject subclass…
DocumentationExplore Documentation
Search Documentation
Documentation Bookmarks
Zoom In
Zoom Out
Actual Size
Add Bookmark
History
Interface BuilderShow Bounds Rectangles
Show Layout Rectangles
Snap to Guides
Live Autoresizing,it
Align Left Edges⌘[Command-[
Align Right Edges⌘]Command-]
Align Top Edges
Align Bottom Edges
Align Horizontal Centers
Align Vertical Centers
Align Baselines
Align Horizontal Center In Container
Align Vertical Center In Container
Send to Front
Send to Back
Send Forward
Send Backward
Unembed
Size to Fit⌘=Command-=
Add Horizontal Guide⌘_Command-_
Add Vertical Guide⌘|Command-|
Reveal in Document Structure
Simulate Document
PDFAutomatically Resize
Zoom In
Zoom Out
Actual Size
Single Page
Single Page Continuous
Two Pages
Two Pages Continuous
Next Page⌥⌘⇣Option-Command-Down Arrow
Previous Page⌥⌘⇡Option-Command-Up Arrow
RTFInsert Page Break
Insert Line Break
Insert Paragraph Break
Show Ruler
Add Link…
Allow Hyphenation
Scripting definitionMake Text Bigger⌘+Command-+
Make Text Smaller⌘-Command--
Source codeShow Completions⌃\Control-\
Edit All in Scope^ ⌘ E,noControl-Command-E,it
Fix All in Scope^ ⌘ F,isControl-Command-F
Show Issue
Show All Issues⌃⌘MControl-Command-M
All Issues
Errors Only
Balance Delimiter
Re-Indent
Shift Right⌘]Command-]
Shift Left⌘[Command-[
Move Line Up⌥⌘[Option-Command-[
Move Line Down⌥⌘]Option-Command-]
Comment Selection⌘/Command-/
Fold⌥⌘⇠Option-Command-Left Arrow
Unfold⌥⌘⇢Option-Command-Right Arrow
Unfold All
Fold Methods & Functions⌥⇧⌘⇠Option-Shift-Command-Left Arrow
Unfold Methods & Functions⌥⇧⌘⇢Option-Shift-Command-Right Arrow
Fold Comment Blocks⌃⇧⌘⇠Control-Shift-Command-Left Arrow
Unfold Comment Blocks⌃⇧⌘⇢Control-Shift-Command-Right Arrow
Focus Follows Selection
Show Invisibles
Xcode projectAdd Target…
Hex editorOverwrite Mode⌥⇧⌘OOption-Shift-Command-O

Table 1-7  Product menu command shortcuts
Command
Variant
Key Binding
Shortcut
Run⌘RCommand-R
Run…1⌥⌘ROption-Command-R
Test⌘TCommand-T
Test…1⌥⌘TOption-Command-T
Profile⌘ICommand-I
Profile…1⌥⌘IOption-Command-I
Analyze⌃⌘BControl-Command-B
Analyze…1⌃⌥⌘BControl-Option-Command-B
Archive
Build ForBuild For Running⇧⌘RShift-Command-R
Build For Testing⇧⌘UShift-Command-U
Build for Profiling⇧⌘IShift-Command-I
Build for Archiving
Perform ActionRun Without Building⌃⌘RControl-Command-R
Test Without Building⌃⌘UControl-Command-U,it
Profile Without Building⌃⌘IControl-Command-I
Build⌘BCommand-B
Clean⇧⌘KShift-Command-K
Clean Build Folder…⌥⇧⌘KOption-Shift-Command-K
Stop⌘.Command-.
DebugPause,de^ ⌘ The,cyControl-Command-Y,it
Step IntoF7Function 7
Step OverF6Function 6
Step OutF8Function 8
Step Into Thread^ ⇧ F7,isControl-Shift-Function 7
Step Into Instruction^ F7,isControl-Command-Function 7
Step Over Thread^ ⇧ F6,isControl-Shift-Function 6
Step Over Instruction^ F6,isControl-Function 6
Add Breakpoint at Current Line⌘\Command-\
Activate Breakpoints
Deactivate Breakpoints
⌘ The,cyCommand-Y,fr
Shared Libraries...
Clear Console⌘KCommand-K
Window BehaviorNormal
Xcode Behind
Xcode In Front
Edit Scheme…⌘<Command-Less Than
New Scheme…
Manage Schemes…
1 Opens the scheme editing dialog for editing prior to performing the chosen command.

Table 1-8  Window menu command shortcuts
Command
Key Binding
Shortcut
Minimize⌘MCommand-M
Zoom
Select Next Tab⌘}Command-}
Select Previous Tab⌘{Command-{
Welcome to Xcode⇧⌘1Shift-Command-1
Organizer⇧⌘2Shift-Command-2
Bring All to Front

Table 1-9  Help menu command shortcuts
Command
Key Binding
Shortcut
Xcode Help
Xcode 4 Transition Guide
Quick Help⌃⌘?Control-Command-?
Search Documentation for Selected Text⌃⌥⌘/Control-Option-Command-/
Developer Documentation⌥⌘?Option-Command-?

Source: