How to fold custom region in CLion through comments?

Viewed 4617
1 Answers

CLion is based on IntelliJ IDEA, and thus supports multiple ways, including:

//region Description
//endregion

and

//<editor-fold desc="Description">
//</editor-fold>

These can be easily accessed by selecting the code you wish to wrap in a region, and hitting Ctrl+Alt+T. You can alternatively access it by clicking Code > Surround with... in the menu bar.

Related