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

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保存

相关文章:

  • 2022-01-08
  • 2021-12-26
  • 2021-11-21
  • 2021-12-06
  • 2021-10-10
  • 2021-11-22
  • 2021-05-29
  • 2021-12-26
猜你喜欢
  • 2021-09-12
  • 2021-11-01
  • 2022-12-23
  • 2022-01-11
  • 2021-08-24
  • 2021-11-20
相关资源
相似解决方案