Setting EGL folding preferences

You can set preferences for folding, which is an editor capability that lets you hide or reveal parts of your source code. Folding has no effect on the source code itself or on the generated output.

Do as follows:

  1. From the main menu, click Window > Preferences. A Preferences window is displayed.
  2. In the Preferences window, expand EGL > Editor and click Folding.
  3. On the Folding pane of the Preferences window, select the Enable folding check box to enable the EGL editor to collapse sections of your code.
  4. Under Initially fold these elements, select the check boxes next to the sections of EGL code that you want the editor to fold automatically when you open a file.
  5. In the Number of property block lines needed to enable folding field, enter the minimum number of lines in a block of properties that you want to be able to fold. If you select the Properties Block check box, EGL will automatically fold blocks of properties of the given size or larger.
  6. To save the changes and remain in the Preferences window, click Apply. To save the changes and exit the window, click OK.