How-To

Five Useful Shortcuts for Xcode 5

You will often find yourself wasting a lot of time and money, navigating menus in xcode. This guide will help stop that and make you a better developer.

This is a variety of useful shortcuts, which are setup by default in xcode.

If you want to create your own shortcuts. You can change them by going to preferences, then clicking key bindings.

Commenting multiple lines of code


Select the lines you want to comment
⌘ + / = Comment/Uncomment


Running and building the app


⌘ + R = Runs the app in the simulator or device
⌘ + B = Builds the app


Opening useful windows


Alt + Left Click = Opens the documentation for the variable/class
Shift + ⌘ + 2 = Opens the organizer
Shift + ⌘ + C = Shows the console


Code structure


⌘ + Up or Down = Go to top/bottom of the file
⌘ + ] or [ = Align the code to edges
⌘ + : = Check for spellings & grammar


Debuging

⌘ + ” or ‘ = Jump between issues in the project
F7 = Step into code



Tags

About the author

Chris

I've been a passionate evangelist for Apple and the Macintosh throughout my working life, my first love was a Quadra 605 working with a small creative agency in the south of Norfolk UK in the mid 1990's, I later progressed to other roles in other Macintosh dominated industries, first as a Senior graphic designer at a small printing company and then a production manager at Guardian Media Group. As the publishing and printing sector wained I moved into Internet Marketing and in 2006 co-founded blurtit.com which grew to become one the top 200 visited sites in the US (according to Quantcast), at its peak receiving over 15 million visits per month. For the last ten years I have worked as an Affiliate and Consultant to many different business and start ups, my key skill set being online marketing, on page monetisation, landing page optimisation and traffic generation, if you would like to hire me or discuss your current project please reach out to me here.

You can also follow me on: and

Add Comment

Click here to post a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.