Eclipse 默认设置的换行字符长度

来源:互联网 发布:淘宝店铺宝贝上架教程 编辑:程序博客网 时间:2024/06/17 20:32

eclipse 默认设置的换行长度,Ctrl+Shift +F 格式化代码后,经常换行,非常难看。

 

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

Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80 修改成999就行了。

 

2.CSS代码

Window->Preferences->Web->CSS Files->Editor->Line width:默认为72 修改为999保存。

 

3.Html代码

Window->Preferences->Web->HTML Files->Editor->Line width:默认为72 修改为999保存。

 

4.JSP代码

Window->Preferences->Web->JSP Files->Editor->Line width:默认为72   修改为999保存。

这里有999是根据个人喜好,随意设置。。。。

0 0