CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Code folding

Last modified: 08 October 2024

CLion automatically recognizes certain code structures and makes them foldable. You can also define custom folding regions.

Folded code fragments are shown as shaded ellipses (Folded fragment). If a folded code fragment has errors, CLion highlights the fragment in red.

For more information, refer to Code folding.