JeeStudy 发表于 2017-7-6 13:57:47

eclipse 默认设置的换行长度, 格式化代码后,经常换行,...

1.Java代码打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80加个0,改成800就行了。
2.CSS代码Window->Preferences->Web->CSS Files->Editor->Line width:默认为72加个0,改为720保存。
3.Html代码Window->Preferences->Web->HTML Files->Editor->Line width:默认为72加个0,改为720保存。
4.JSP代码Window->Preferences->Web->JSP Files->Editor->Line width:默认为72加个0,改为720保存。
页: [1]
查看完整版本: eclipse 默认设置的换行长度, 格式化代码后,经常换行,...