在使用Eclipse开发的时候写了许多注释 但使用Ctrl+Shift+F 整理的时候 很容易就把注释部分整理成一行

解决方法:
Window–>Preferences
Eclipse 不格式化注释
选择java–>Code Style Formatter菜单
然后New(新建一个属于自己的Active profile(名字自定))
Eclipse 不格式化注释
点击Edit按钮就行修改
选择Comments 选项卡 取消勾选“Enable block comment formatting”.
Eclipse 不格式化注释
保存即可!!!

相关文章:

  • 2022-01-19
  • 2022-12-23
  • 2021-12-14
  • 2021-03-28
  • 2021-10-24
  • 2021-09-24
  • 2022-01-08
  • 2021-08-08
猜你喜欢
  • 2021-10-03
  • 2021-12-31
  • 2021-11-03
  • 2021-10-07
  • 2021-11-21
相关资源
相似解决方案