Information Technology Reference
In-Depth Information
CAUTION
Xcode's code folding is simple and limited compared to the equivalent feature on other platforms. It's delimiter-
based and has no syntactic intelligence. You can't do useful things such as hiding long property lists.
Editing Structure
It's often useful to comment or uncomment blocks of code, clean up indentation, check delimiters, move lines
up or down within a method, and so on. Xcode's editor includes a contextual right-click menu that implements
these features, as shown in Figure 9.3.
TIP
Newcomers to Xcode sometimes miss this menu or ignore it because there's so much else to learn. But it's one of
the keys to improving productivity in Xcode, and it's the best way to avoid wasting time on manual code tidying
chores.
FIGURE 9.3
Viewing the Structure editing menu, an unglamorous but very useful timesaver
 
Search WWH ::




Custom Search