1、打开eclipse,

window-->preferences-->Web-->HTML Files-->Editor,

将Line width设置为720,使代码不会很容易换行,

然后在Inline Elements中选中第一个拖动滚动条到底部按着Shift点击最后一项,点击Remove,将所有的Inline Element移除,如下图

设置eclipse中jsp/html文件的自动排版 

 最后apply and close。

2、

选中要格式化的文档,选择source下的Format菜单。

或者用快捷键    ctrl+Shift+F

相关文章:

  • 2021-07-16
  • 2022-02-07
  • 2022-01-09
  • 2022-02-07
  • 2021-11-27
  • 2022-02-07
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2021-10-09
  • 2022-02-07
  • 2022-02-07
  • 2021-05-20
  • 2022-02-07
相关资源
相似解决方案