From 015881b6139435189144ad6a2e688dd50eb608c8 Mon Sep 17 00:00:00 2001 From: Elango Cheran Date: Wed, 5 Nov 2025 11:58:04 -0800 Subject: [PATCH] Update Readme on IntelliJ plugin config for code style (indent size) --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a5c400122..85e3668da 100644 --- a/README.md +++ b/README.md @@ -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