这是voidAlex原创的第十二篇博文。

下载

1
git clone git@github.com:google/styleguide.git

配置

在clone的仓库中找到intellij-java-google-style.xml这个文件,然后打开IDEA,File->Setting->Editor->Code Style->Java,把设置文件导入:

选择文件,然后点ok:

选择Google Style,配置完成: