Code folding

Code folding or code folding denotes a function in editors, especially in modern integrated development environments to group logically related sections of code such as classes or methods in so-called Folds and wrinkles. You can see the sections then simply show and hide as if you fold a piece of paper to hide certain rows.

One of the first programming languages ​​that support this feature and known did was GFA - BASIC.

The code folding has nothing to do with the similar-sounding convolutional codes.

Programs with support for code folding

Development environments

Free Software

Proprietary software

Editors

Custom Editor -wrinkle

Some editors also allow to define custom folds. Here are some examples:

  • Vim, using the example of C code:

Int function () / / { { {    {      '' Code ''    }    / /} }} When folded, this section looks like this:

- 5 lines: int function () / / --------------------------- Instead of { { { }}}, and other labels can be used.

  • NetBeans:

/ /    source / / < / Editor - fold > C #

# region Description    source # endregion Visual Basic. Net

195960
de