Xcode 6 Keyboard Shortcuts & Key Bindings

Must go faster...

Published Mar 4

Remembering all of xcode's shortcuts has always been a hassle for me. It feels incredibly unintuitive and lacks Apple's usual polish. Despite having a few good sites to reference, none of them had all the things I needed. So, I compiled and recorded my most used shortcuts and organized them into a list.

If you have any suggestions, shoot me an email. Hope this helps!


Note: There are a lot of videos on this page. It may make your computer sluggish. If it does, press the "Pause All Videos" button below and play them individually.


Symbol Guide

I always forget the keyboard symbols. Use this to familiarize yourself.

Command

Shift

Option/Alt

Control

Enter/Return

Escape


Reorganize List


Quick Open File

+

+

O

Quickly open any file.

⌘ + ↩ to open in assistant editor.


Run

+

R

Run on your selected device. Will build if necessary.

⌘ + B to just build


Clean

+

+

K
Removes all the product files, as well as any object files (.o files) or other intermediate files created during the build process.

Go Forward/Back

+

+

or

Quickly browse this pane's history. Adding ⌥ (alt/option) will change the alternate pane. Very handy.


Show File Counterpart

See the file's .m or .h quickly.

+

+

or


Show Assistant Editor

+

+

⌘ + ↩ to hide the assistant editor. Why are these two different? Who knows...


Switch Selection

+

J

An essential part of the Xcode power user's toolbelt: switch to the other pane. You'll need to press ⇢ (right key) after evoking the shortcut to get to the right sided pane.


Edit All in Scope

+

+

E

Man, I wish xcode had something like Sublime Text's ⌘+D or multiple selection, but this'll do I guess.


Open/Close Console

+

+

Y
A pane in the debug area that lets you see program output, and interact with the debugger.

Despite using a plugin that auto-hides my console, I find myself constantly having to hide it manually.


Set/Remove a Breakpoint

+

\
An action to perform when a program reaches a certain point in its execution, such as logging output to the console. The default breakpoint action is to pause program execution

⌘ + Y to disable/enable all breakpoints

⌃ + ⌘ + Y to play/pause debugger


Show/Hide Navigator

+

0

Reindent Lines

+

I

I didn't know this existed until a friend pointed it out. Quickly reindent your disorganized code.


Move Lines Up/Down

+

+

]

or

[

Comment Line

+

/

Look, we all do it - for better or worse. Adding // to the beginning of a line also works.


Show/Hide Utilities

+

+

0

Jump To Definition

+

+

J

Need to find out where something's source? Jump to definition.


Quick Help

+

+

+

/

Make a selection and run the shortcut. Xcode will open the documentation with your term. A lifesaver when you're starting out.


Navigator Tab Shortcuts

+

1

through

6
  1. Project Navigator
  2. Symbol Navigator
  3. Find Navigator
  4. Issue Navigator
  5. Test Navigator
  6. Debug Navigator
  7. Breakpoint Navigator
  8. Report Navigator

Utilities Tab Shortcuts

+

+

1

through

6
  1. File Inspector
  2. Quick Help Inspector
  3. Identity Inspector
  4. Attributes Inspector
  5. Size Inspector
  6. Connections Inspector

The avaialbility of each tab is based upon the currently selected file. E.G. Storyboard files will have all six availble.


Show File

+

+

J

Quickly locate a the currently selected file in the Project inspector.


Open Documentation

+

+

0
A pane in the Organizer window designed for browsing and searching developer documentation.