修改Eclipse中格式化时默认行长度
2014-12-03 00:10 一切尽在掌握 阅读(359) 评论(0) 编辑 收藏 举报eclipse 默认设置的换行长度, 格式化代码后,经常换行,非常难看。
1.Java代码 打开Eclipse的Window菜单,然后
Preferences->Java->Code Style->Formatter->Edit ->Line Wrapping->Maximum line width:默认80
加个0,改成800就行了。(注意改Profile name)
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保存。