Java Editor Folding Preferences

Indicate your preferences for the Folding settings on the Opens the Folding preference page Java > Editor > Folding preference page.

Option

Description

Default

Enable folding

If enabled, different sections in the Java editor can be folded and expanded.

On

Comments

If enabled, comments are folded when opening a new editor.

Off

Header Comments

If enabled, header Comments are folded when opening a new editor.

On

Inner types

If enabled, inner types are folded when opening a new editor.

Off

Members

If enabled, Java members are folded when opening a new editor.

Off

Imports

If enabled, imports are folded when opening a new editor.

On

Custom Folding regions

If enabled, custom folding regions are folded when opening a new editor.

Off

Extended folding (experimental) \ Activate feature

If enabled, folding will be active for several other kinds of code blocks like loops, if statements, etc.

Off

Custom folding regions \ Enable folding of custom regions

If enabled, custom regions can be folded in the editor.

Off

Custom folding regions \ Text marking start of region

Comments starting with the content of this option indicate the start of custom folding regions.

region

Custom folding regions \ Text marking end of region

Comments starting with the content of this option indicate the end of custom folding regions.

endregion

Custom folding regions allow creating regions to fold using a marker text for the start and end of the region in a comment. Leaving the fields for the start or end markers empty disables this feature.

Java Editor preference page