Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ google-java-format" checkbox.

To enable it by default in new projects,
[open the default settings for new projects](https://www.jetbrains.com/help/idea/configure-project-settings.html#new-default-settings)
and configure it under "Other Settings/google-java-format Settings".
and configure it under "Other Settings" > "google-java-format Settings".

When enabled, it will replace the normal `Reformat Code` and `Optimize Imports`
actions.

In the same location in Settings, under "Other Settings" > "google-java-format Settings",
the drop down `Code Style` allows you to configure the formatter options:

* `Default Google Java style`: using 2 spaces indent
* `Android Open Source Project (AOSP) style`: using 4 spaces indent

#### IntelliJ JRE Config

The google-java-format plugin uses some internal classes that aren't available
Expand Down
Loading