1. 打开Eclipse 。找到window---->perferences

    eclipse 设置代码格式化样式
  2. 找到。java---->code style-->formatter

    eclipse 设置代码格式化样式
  3. 然后找到 右上角edit点击进入。

    eclipse 设置代码格式化样式
  4. 在braces中,修改所有的nextline 。最后下面打个勾

    eclipse 设置代码格式化样式
  5. 最后记得修改一个配置的名称,就叫 like vs2010吧。

    然后点击OK

    eclipse 设置代码格式化样式
  6. 之后,记得选择这个配置文件 like vs2010

    eclipse 设置代码格式化样式
  7. 最后到项目里面。再按一次CTRL+shift+f就可以看到结果了。

    eclipse 设置代码格式化样式

相关文章:

  • 2022-02-07
  • 2021-12-11
  • 2021-05-13
  • 2021-05-21
  • 2021-10-24
  • 2021-12-18
猜你喜欢
  • 2021-05-04
  • 2021-06-07
  • 2021-12-18
  • 2021-09-19
  • 2022-12-23
  • 2021-06-06
相关资源
相似解决方案