有没有办法阻止Eclipse破坏我的源文件中的注释?
我的主要问题是防止它进行换行。我已经成功地配置了Eclipse,使其不对任何代码进行换行,但它似乎仍会对注释进行换行。
像这样输入的代码:
public int myVariable = 100; // this variable is a very interesting variable and it does lots of stuff
最终呈现的效果如下:
public int myVariable = 100; // this variable
// is a very
// interesting
// variable and
// it does lots
// of stuff