最近在找公司通用的代码格式化模板,参照唯品会的代码格式化模板:

https://github.com/vipshop/vjtools/tree/master/standard/formatter

然后涉及到导入,网上有很多资料,需要先安装 Eclipse Code Formatter 这个plugin, 然后再导入,但是现在有IDEA Code Formatter Profile, 应该没必要再这样操作,具体按照如下:
IntelliJ IDEA -> Preferences -> Editor -> Code Style -> Java

IntelliJ IDEA import Code Formatter Profile

如图,选择”Import Scheme” 就可以导入IDEA Code Formatter Profile!

相关文章:

  • 2021-08-13
  • 2021-08-28
  • 2021-07-24
  • 2021-12-23
  • 2022-12-23
  • 2021-05-05
  • 2022-02-17
猜你喜欢
  • 2021-06-25
  • 2021-06-11
  • 2021-10-11
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案