Folding

Code folding feature enables you to collapse blocks of code such that only the first line of the block appears in Editor.

A block of code that can be folded is indicated by an icon to the left of the first line of the block. A vertical line extends from the icon to the bottom of the foldable code. In contrast, a folded block of code is indicated by an icon to left of the code block. You can fold the block by clicking or expand it by clicking in Editor.

For more folding options, you can choose in menu Edit > Folding, which enables you to perform seven different types of folding as follows:

Toggle Fold
Change the state of folding of the current block.

Expand All
Expand all blocks.

Collapse All
Collapse all blocks.

Collapse All JavaDoc
Collapse all Javadoc blocks.

Expand All JavaDoc
Expand all Javadoc blocks.

Collapse All JavaDoc Comment
Collapse all Javadoc comment blocks.

Expand All JavaDoc Comment
Expand all Javadoc comment blocks.