Code Folding
By default, the methods’ editor windows provide code folding, which makes it possible to selectively hide and display sections of the code in the editor. You can use code folding to manage methods that include a lot of code by viewing only those sections of the code that are relevant at any given time.
Click the
−
(minus) button to hide (fold) that code segment or the
+
(plus) button to display the code segment. When folded, put the cursor at the box with an ellipsis (…). A tooltip then displays the hidden code.
Figure 4-2:
A Method Editor window before folding some of the code segments.
Figure 4-3:
The same method after folding some of the code segments.
To turn off code folding, open the
Preferences
dialog box. On the
Methods
page, clear the
Enable code folding
check box under
Settings
.