Information Technology Reference
In-Depth Information
To display the menu, right-click anywhere in the editor area. Some options in this menu require you to select a
block of code. The following features are available:
Balance delimiter: This is a display-only feature that helps you fix delimiter mismatches. When you se-
lect it, Xcode highlights the matching delimiters nearest to the edit point. Select it again, and it highlights
the next matching pair. And so on. You also can double-click any delimiter to find its partner and highlight
the code between them.
Reindent: This corrects the indentation within a selected block of code. Code features within matching
delimiters are indented by the same number of spaces. This is a good way to clean up a messy edit.
Shift Right/Left: These options move a selected block of code by the number of spaces used for an in-
dentation step. You can use this feature to correct indentation after a major change to a method, but it's of-
ten easier and quicker to use the Reindent option after editing.
Move Line Up/Down: In spite of the name, these options can move a single line or a selected block up
and down. The line above or below the selection changes position.
Comment Selection: If the selection is uncommented, this option inserts two slashes before each line. If
it's commented with two slashes on each line, the slashes are removed. This feature isn't intelligent enough
to recognize /*…*/ comment blocks and doesn't uncomment them correctly.
TIP
Search WWH ::




Custom Search