我读到了这个:
https://www.jetbrains.com/clion/help/folding-and-expanding-custom-blocks.html
并尝试点击此链接:
https://www.jetbrains.com/clion/help/Folding_Custom_Regions_with_Line_Comments.html
但它似乎已损坏,因为它重定向到“Meet CLion”页面。
如何使用注释在 CLion 中定义自定义折叠区域?
最佳答案
CLion基于IntelliJ IDEA,因此支持多种方式,包括:
//region Description
//endregion
和
//<editor-fold desc="Description">
//</editor-fold>
通过选择您想要在某个区域中换行的代码,然后按 Ctrl+Alt+T 可以轻松访问这些内容。您也可以通过单击菜单栏中的 Code
> Surround with...
来访问它。
关于ide - 如何通过注释折叠CLion中的自定义区域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35995741/