Eclipse设置不格式化注释

来源:互联网 发布:安卓手机优化软件 知乎 编辑:程序博客网 时间:2024/06/01 18:37

(1)windows--preferences--java--code style--formatter--edit中 

修改任何一个选项都报:

This is a built-in profile,change the name to create a new profile


找了半天原因,是因为一直在修改他内置的配置文件,这样是不允许的


因此我们需要在windows--preferences--java--code style--formatter 这里,右边找到一个“New...”这个,自己新建一个配置文件,然后里面的内容跟系统是默认一致的,然后我们就可以在新的配置文件基础上进行修改了。


(2)Eclipse设置不格式化注释

  注释中写点带格式的文字,format后全乱了,解决办法如下:

  Windows -> Preferces -> Java -> Code Style -> Formatter -> Edit -> Comments

  取消勾选“Enable Javadoc comment formatting”