Monday, February 25, 2008

Complete Xcode Keyboard Shortcut List (UPDATED)

Update: This document is for Xcode on Mac OS X 10.5 Leopard. If you are using the latest Xcode 3.2 on Mac OS X 10.6 Snow Leopard then you should instead go to the Xcode Shortcuts for 3.2 on Mac OS X 10.6 Snow Leopard instead.
Xcode Shortcuts (PNG) Xcode Shortcuts (PDF) Xcode Shortcuts (Black & White PNG) Xcode Shortcuts (Black & White PDF) Inspired by the Des Moines Cocoaheads Group discussion on keyboard shortcuts for Xcode that we weren't aware of, I decided that I had had enough of not having a simple reference sheet with all the shortcuts on it. Sure you can find listings of Xcode keyboard shortcuts if you know where to look, but nothing concise on an all in 1 reference sheet. So Over a couple weeks I made one with all (i believe) 206 keyboard shortcuts on it... yeah I've been using Xcode for a while an I wasn't aware there were so f'ing many shortcuts. Click on the link above and download and share to your hearts content. Also I apologize in advance for the slight misalignment of the text descriptions in the text shortcut box, Pages slightly starts changing the line width for lines that have the command,option,etc symbols in them which made it difficult to create a companion text box where the text was properly aligned up like it is everywhere else. I also have this in PDF form, but Blogger says it only accepts jpg, gif, bmp and png images and movies but no general documents, but if someone knows a good hosting site for that and really wants it in PDF form and posts a link in the comments I'll try and get a PDF version up as soon as I can. I tried to post the PDF in pownce and it wouldn't let me post a file to the public :( If you find any errors please let me know (E-Mail linky to the right) and i'll post an update on this article as soon as I can. Thanks! UPDATE: Whew just got back from morning class and thank you everybody for the comments and help. Scott thanks for your assistance you can host the PDF's if you want to. I found the "Enable Breakpoints at Line" shortcut is wrong (I swear I thought I fixed that last week.) I've fixed it and have a Black & White version available as well (I'll try and make a version that spans 8.5 x 11 pages soon, but im swamped in homework I have to do right now.) I've temporarily put it up on my own hosting because Blogger is spaz'ing out right now and won't let me upload images. Sorry John I didn't put it up on my/your hosting initially because I didn't wanna suck up your bandwidth without your permission. Thanks everybody! Xcode Shortcuts (PNG) Xcode Shortcuts (PDF) Xcode Shortcuts (Black & White PNG) Xcode Shortcuts (Black & White PDF)

33 comments:

Anonymous said...

Colin

I would be happy to host this as a PDF document on The Mac Developer Network.

You could then link to it from your post/site.

Scotty

Mark Rickert said...

So much cool information! I'd love to have it in a format that can be printed out for reference without wasting a TON of ink. Any way we can get this black on white and portrait for printing?

Thanks,
-Mark

John said...

I have put up a PDF version. Remember you have hosting at your 1729.us domain.

http://www.bobbis.net/media/Xcode_Shortcuts.pdf

Anonymous said...

Thanks very much for this.

I second the request for a printer-friendly version.

-Ted

I, Robot said...

Many thanks for doing this, Colin.

Anonymous said...

It sure would be nice if there was a keyboard command to make Xcode fetch the current selection (or if nothing is selected, use the current insert point to select whatever word I'm inside in) and then look this up in the reference. Just like command + double click, but without the need to use the mouse. You don't happen to have a clue on whether this is already available? ;)

Colin Wheeler said...

@mattias no I don't. The closest thing to what your talking about seems to be the Research Assistant on Xcode 3

Leonardo Cassarani said...

Just wanted to report a tiny mistake: under the "Format" group there's a misplaced '[' in "Shift Left[". Keep up the awesome work! :)

Dave. said...
This comment has been removed by the author.
Dave. said...

@mattias I agree, that would be nice! A work-around I've used is to hit up System Preferences > Keyboard & Mouse > Keyboard Shortcuts to assign a keystroke to the "Find Selected Text in API Reference" menu item.

but thanks for putting the time into this colin!

dave.

Anonymous said...

Found this really helpful. Thank you!

Anonymous said...

Very useful. Thanks.

Anonymous said...

Very useful, thanks. I have bookmarked this at http://www.iphonekicks.com/xcode/Xcode_Keyboard_Shortcuts

Julio Gorgé said...

Nice job, very appreciated ^^

AJ said...

Ok, I'm gonna be the idiot that admits it...


What the hell are those symbols?
I know cmd, and shift, and ctrl.

But what's the carrot-with-a-line thing for "Insert newline and Indent with Enter"

Or the up/down arrows with 2 horizontal lines through?

Or the circle with a line coming out (escape?)

Or the diagonal arrows?

Help!

Ash said...

too good.. Thank u..

Olof said...

My favorite commands (that seems to be missing) :
cmd-alt-up (switch to/from .h file)
ctr-1 (history bar, many misses that this golden bar even exists)
ctr-2 (function bar)

Bill Clementson said...

Great job! Unfortunately, it isn't searchable (even the PDF version isn't searchable). This means that it's hard to search for a particular command and you just have to visually scan through the commands until you find the command you're looking for. Could you please also post your Pages version of the document (or some other format that supports searching)?

Thanks,
Bill

Bill Clementson said...

Oops, never bind - I just found your page with the Pages version of the shortcuts:
http://cocoasamurai.blogspot.com/2008/08/xcode-shortcuts-original-documents-now.html

Thanks!

Theo said...

What is that keyboard command for "Completion List" ... I don't recognize that icon.

Colin Wheeler said...

It's the Esc icon

Neon Spark said...

thats great.
thanks

Steve said...

Awesome - so helpful for the newb.

Marcus said...

Thank you for putting this together. I am learning Mac development right now and have found it very useful to have sitting right next to me while working in Xcode.

Farhad said...

This is great. Thanks!

Ran Margalit said...

Thanks!

Unknown said...

I think you forgot to add "comment selection" which is ⌘+/

Douglas said...

Thanks, im sure i'll find some nifty tricks on here!

katrina said...

i need to attach PDF form on my iPad app. but when i attach it on the xcode is just black and white. theres no background and the textfield are disabled.

can someone help on this..

Thanks!!!

blank said...

coooool!

Thanks so much for this. :)

_Blank.

Silver MLM said...

How do I assign a keyboard shortcut in Leopard that triggers a menu item that is many layers deep?

Holene said...

Nice!

But I have a question. Is there a shortcut for running a program without compiling the code each time? I've tried cmd+alt+R, but the the window about "Build Configuration" etc shows up. I want just a quick way of restarting my program in the command window. Is that possible?

Thanks in advance! =)

Colin Wheeler said...

@holene in the most recent version for xcode 4 https://github.com/Machx/Xcode-Keyboard-Shortcuts its comand + control + r

 
...