设置JAVA code style 使用文件(https://github.com/google/styleguide/blob/gh-pages/intellij-java-google-style.xml),保存到本地后导入 设置代码自动格式化 安装插件save action 重启idea 勾选下图所示的选项