ide - 如何通过注释折叠CLion中的自定义区域?

标签 ide comments clion

我读到了这个:

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/

相关文章:

c - 从输入文件中删除注释的 Lex 程序

python - CLion 外部工具宏

c - CLion IDE 中的文件 I/O

cmake - 如何将 CLion 自定义 CMake 可执行文件设置为随 Homebrew 安装的版本?

javascript - IntelliJ IDEA 没有运行基本的 JavaScript hello world

c - 使 Visual Studio 项目文件与目录内容保持同步?

ide - 富文本有助于注释代码吗?

c - 哪个是最适合初学者的 C IDE?

Python:我在函数下的注释的最后 3 个引号 'indented block' ") 中收到 (""错误。怎么了?

comments - 注释被删除的代码