How to configure Google Java Code Formatter in Intellij IDEA 17?

后端 未结 5 491
面向向阳花
面向向阳花 2021-01-31 13:55

In the latest versions of IntelliJ IDEA it seems that it isn\'t possible to import code style files like intellij-java-google-style.xml.

I would like use the Google Java

5条回答
  •  无人共我
    2021-01-31 14:44

    After doing above steps mentioned by Lorenzo, for applying the setting in the current project :- Intellij>Preferences>google-java-format setting and enable it in intellij; as it wont be enabled by default after doing restart as well.

    If you want to have this setting for the projects which will you create after installing this plugin , then Go to File >Other Settings> Default Settings> google-java-format-setting and enable it

提交回复
热议问题