How to collapse user region in CLion using comments?

I read this:

https://www.jetbrains.com/clion/help/folding-and-expanding-custom-blocks.html

and tried to execute the following link:

https://www.jetbrains.com/clion/help/Folding_Custom_Regions_with_Line_Comments.html

but it seems to be broken, as it redirects to the Meet CLion page.

How to define custom bend areas in CLION using comments?

+5
source share
1 answer

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

//region Description //endregion 

and

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

You can easily access them by selecting the code that you want to wrap in the region, and press Ctrl + Alt + T. You can also access it by clicking Code > Surround with... in the menu bar.

+4
source

Source: https://habr.com/ru/post/1245037/


All Articles