Site icon ChrisWrites.com

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



Exit mobile version