【发布时间】:2015-10-18 06:18:40
【问题描述】:
我正在使用 Doxygen 和 eclipse 来记录我正在处理的 Java 项目。目前,代码格式化程序在 cmets 之后插入一个空格,这给记录类变量带来了困难。比如下面的代码
public class Example {
/// this is the description of the variable
public String var = "hellooooo world";
}
被“更正”为
public class Example {
// / this is the description of the variable
public String var = "hellooooo world";
}
这会破坏我正在记录的变量的文档。显然我可以简单地关闭代码格式化程序,但它真的很有用。如果可能,我只是想避免脚本或查找/替换调用。我认为这是一个常见问题,但到目前为止我一直找不到任何东西。
【问题讨论】:
-
那 /** 评论块呢?看起来更好吗?
-
这是一个解决方案,但不是最可取的。