先贴上Google的官方code style文档
Google Java Style Guide

Google 在 GitHub 上有一个专门放置编码规范的仓库,地址在:https://github.com/google/styleguide

现在有了这两样东西,就可以开始配置了。
在git仓库里找到 intellij-java-google-style.xml 文件,打开它,然后copy到本地。

好,现在我们进入Intellij IDEA,在左上角点击“IntelliJ IDEA“ -> preference
Macbook版Intellij IDEA 配置 Code Style
在侧边栏选择 Editor -> Code Style -> Java
点击齿轮按钮,进入设置,inport刚刚保存的xml文件,Apply即可。

相关文章:

  • 2021-10-22
  • 2022-01-23
  • 2021-08-11
  • 2021-08-14
  • 2021-06-13
  • 2021-09-26
  • 2022-12-23
猜你喜欢
  • 2021-07-29
  • 2021-06-25
  • 2021-11-02
  • 2021-06-17
  • 2021-12-15
  • 2021-11-22
相关资源
相似解决方案