【发布时间】:2011-02-18 07:34:37
【问题描述】:
我在使用 Eclipse 格式化程序时遇到问题,我似乎无法弄清楚。
如果我有一行包含超过 80 个字符的 cmets 代码,例如:
Something something = new Something(somethingElse) // some comments here about the code.
那么我第一次运行格式化程序时,它会正确设置它,例如:
Something something = new Something(somethingElse) // some comments here
// about the code.
但是,如果我稍后再次运行格式化程序,它将更改为:
Something something = new Something(somethingElse) // some comments here
// about the code.
我觉得这里应该缺少一些明显的东西,但我已经查看了所有我能找到的格式化程序设置,但还没有找到防止这种行为的方法。有人对此有任何见解吗?
谢谢
【问题讨论】:
标签: java eclipse comments whitespace formatter