修改Eclipse格式化代默认长度

2025-12-30 18:31:39

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

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

加个0,改成800就行了。

2、2.CSS代码

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

加个0,改为720保存。

3、3.Html代码

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

4、4.JSP代码

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

加个0,改为720保存。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢