idea/clion行注释位置(不在首列,注释就靠近代码块)

进入 Settings -> Code Style -> Java或C/C++ ,在右边选择 “Code Generation” Tab,然后找到 Comment Code 那块,把
Line comment at first column
Block comment at first column
去掉前面两个的复选框,这样注释就靠近代码块了。
选上Add a space at comment start就会在代码块前添加一个空格。

我最擅长从零开始创造世界,所以从来不怕失败,它最多也就让我一无所有。
原文地址:https://www.cnblogs.com/flying_bat/p/14847629.html