我看了这个:
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...
来访问它。