For some types of files, you can use the code folding feature to collapse blocks of code so that only the first line of the block appears in the Source Editor.
For Java files, you can fold:
A block of code that can be folded is indicated by a collapse icon
() to the left of the first
line of the block. A vertical line extends from the collapse icon to the
bottom of the foldable code.
A folded block of code is indicated by an expand icon
() to left of the code block.
You can also expand and collapse folds by clicking expand and collapse icons or by right-clicking in the code and choosing from the Code Folds menu.
For Java files, the Code Folds menu enables you to:
For information on setting defaults for code folding, see Java Editor Code Folding Dialog Box