如何通过评论折叠CLION中的自定义区域?

问题描述 投票:5回答:1

我看了这个:

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中定义自定义折叠区域?

ide comments clion
1个回答
11
投票

CLion基于IntelliJ IDEA,因此支持多种方式,包括:

//region Description
//endregion

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

通过选择要包装在区域中的代码,然后按Ctrl + Alt + T,可以轻松访问这些内容。您也可以通过单击菜单栏中的Code> Surround with...来访问它。

© www.soinside.com 2019 - 2024. All rights reserved.