From bc7f8bbb5cf41b0da18a6c07a05d93a907ed68d3 Mon Sep 17 00:00:00 2001 From: joaonsk203 Date: Sat, 14 Nov 2026 23:16:53 -0300 Subject: [PATCH] docs: clarify Eclipse formatter profile configuration --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 5229fc404..0a4155934 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,20 @@ The plugin adds two formatter implementations: These that can be selected in "Window" > "Preferences" > "Java" > "Code Style" > "Formatter" > "Formatter Implementation". +#### Eclipse Formatter Profile + +The formatter implementation is provided by the `google-java-format` Eclipse plugin +and determines which formatting rules are applied to Java source code. + +The Active profile is configured separately in Eclipse. To use the Google Java Style profile, +import the [Google Java Style Eclipse profile](https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml) +through "Window" > "Preferences" > "Java" > "Code Style" > "Formatter" > "Import...", +then select the imported profile as the Active profile. + +Import organization is configured separately under "Java" > "Code Style" > "Organize Imports". +To obtain consistent results with the command-line formatter or Maven plugin, remove all import +groups from these settings. + #### Eclipse JRE Config The plugin uses some internal classes that aren't available without extra