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 window. On the Methods page under Application Builder, clear the Enable code folding checkbox.
Toggle Folding Expansion
Right-click in the Method Editor and choose Toggle Folding Expansion in the method to toggle all the expansion states of the code folds that are represented by (-) or (+) in the left margin of the Method Editor. You can also use the keyboard shortcut Ctrl+Shift+-.