View and Find Code in the Editor
The IDL Editor provides tools to help you scan your code and find what you need. The features discussed in this section are Code Folding, Open Declaration, Hover Help, Code Templates, Parentheses Matching, Search, and Open Resource.
Code Folding
This feature helps you view code by "folding" or collapsing routines (procedures, functions, object methods, and comments). When code folding is enabled, icons appear in the margin to the left of the code to indicate whether that routine is collapsed or expanded. The minus (-) sign icon shows that the routine is expanded, and the plus (+) sign icon indicates the routine is collapsed, as shown in the following screen capture.

To enable code folding, right-click in the gutter (left side of the IDL Editor) and select Folding → Enable Folding from the pop-up menu. The following screen capture shows that you can also choose to Collapse All or Expand All from this menu.

Note
To quickly view a collapsed routine without expanding it, move (hover) your cursor over the plus sign (+) next to the name of the routine, and the routine displays in a pop-up window. See Hover Help for more details.