Five Useful Shortcuts for Xcode 5

Before We Get Started

Having spent over 20 years working with Macs both old and new there is a tool I recommend to every Mac Owner: CleanMyMac X, its simply best all-round problem solver for the Mac and it can quickly solve most performance issues covered on this site. So here is a tip for you, go Download CleanMyMacX right now and start enjoying a faster Mac today!

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


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


About the author


Follow me here: |

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.