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

原因:本人已经安装了:

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

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

卸载掉该插件即可

安装该插件如下:

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

猜你喜欢

转载自blog.csdn.net/u014635374/article/details/109824862
今日推荐