# Editor Options: Folding

This tab enables you to customize the global and language-specific settings for code folding.

This panel has the following elements:

Element | Description
--- | ---
Language | Specify the language for which you want to specify the editor code folding settings.
Enable Code Folding | When selected, you have the option of collapsing the display of code blocks. You can select which types of code blocks are collapsed by default. Code folding is applied only to editor types that support code folding, such as the Java editor.
Collapse by Default | Select the types of code blocks that are collapsed by default. The available options depend upon the language that is selected.
Display Options | Enables you to specify options for how code folds are displayed in the editor.
Content preview |
Show summary | When selected, the total number of lines in a collapsed fold are displayed in the editor.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.