Eclipse相关设置

eclipse 默认设置的换行长度, 格式化代码后,同一个方法里面参数也经常被,换行,非常难看。

1.Java代码打开Eclipse的Window菜单,然后

Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line 默认80

加个0,改成800就行了。

2.CSS代码

Window->Preferences->Web->CSS Files->Editor->Line 默认为72

加个0,改为720保存。

3.Html代码

Window->Preferences->Web->HTML Files->Editor->Line 默认为72加个0,改为720保存。

4.JSP代码

Window->Preferences->Web->JSP Files->Editor->Line 默认为72

加个0,改为720保存。

------------------------------------------

编码 general ->workspace

字体 general ->apprearance ->colors and fonts

行号 general ->editors ->text editors

提示 java ->editor ->content assist

--------------------------------------------

自定义类中的字段名都有前缀m,生成getter、setter时不想有m的设置方法

Prefefences->Java->Code Style-> 右边视图中选中“Fields” 点“Edit” 在“Prefix list”中填入“m”即可。

原文地址:https://www.cnblogs.com/bloodofhero/p/4832538.html