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

Christopher Lee

I’m a digital marketer and affiliate consultant who started by sharing practical Mac tips. In 2006 I co-founded Blurtit.com, which grew to ~15M monthly visits and was a strong AdSense performer for its time. Since then I’ve worked as a Product Owner in finance and online gaming (including PLCs), focusing on on-page monetisation, landing-page optimisation, traffic growth, project management, and building high-performing teams. If you’d like to talk about a project, please get in touch.

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.