Chapter 9: Saving Time in Xcode

Many editing operations are repetitive, while others can help you organize your code more effectively to simplify development and maintenance. Some basic timesaving features are built into Xcode. For example, Xcode 5 creates paired curly brackets automatically. It also adds a matching square bracket at the start of an Objective-C statement if you type the final closing square bracket.

Other features are more complex. Xcode 5 includes these tools:

  • Code folding
  • Structure editing
  • Refactoring
  • Code snippets
  • Jumping to a definition

Using Code Folding

Code folding is a simple feature that can hide code while it isn’t being edited. It’s a display-only feature that makes it easier for you to concentrate on one section of code without being distracted by surrounding elements.

Get Xcode 5 Developer Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.