CLion:将一条长注释拆分为多行,其中包含固定数量的字符

时间:2015-04-15 15:19:39

标签: ide editor clion

有没有办法强制注释跨越CMakeLists.txt和cpp文件中的多行?

不是

# So that really long comments that would not normally be split across multiple lines like this one, which look really annoying in git commit history or other editors which do not text wrap like the one on stack overflow . . . . 

BUT

# So that really long comments
# end up split across multiple 
# lines like this?

在“编辑”菜单中,有一个join lines命令。我实际上想要这个函数的反函数,以便注释包含在编辑器中显示的显示最大宽度的细垂直线上。

1 个答案:

答案 0 :(得分:0)

Soft Wrapping为您完成此任务。

OSX上的

CLION - >偏好 - >编辑 - >一般 - >选中编辑器中的使用软包装。