原因:本人已经安装了:

由于以前的项目中使用的是google style, 在这里也介绍使用google style的的方法。

一、安装google-java-format 
preferences -> plugins -> Browse repositories… 
搜索google-java-format 

Intellij Idea 代码格式化/保存时会打乱线上的代码格式解决方案

卸载掉该插件即可

 

安装该插件如下:

    Intellij Idea 代码格式化/保存时自动格式化

 

相关文章:

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