xyhero

该设置可以在保存文件时自动根据模板调整代码格式。

首先准备华为代码格式化文件:

FEFO-Formatter.xml

FEFO-codetemplates.xml

设置格式
Preferences-Java-Code Style-Formatter,右侧Import...FEFO-Formatter.xml文件
设置模板
Preferences-Java-Code Style-Code Templates,右侧Import...FEFO-codetemplates.xml文件
设置保存动作
Preferences-Java-Editor-Save Actions
右侧勾选以下选线:
Perform the selected actions on save Format source code Format all lines Organize imports



 

分类:

技术点:

相关文章:

  • 2021-11-16
  • 2021-10-04
  • 2021-05-04
  • 2021-06-07
  • 2021-08-13
  • 2021-05-04
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2021-05-13
  • 2021-10-22
  • 2022-12-23
  • 2021-11-07
  • 2021-08-01
  • 2022-12-23
  • 2021-08-13
相关资源
相似解决方案