You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Please document the role of Active profile in Eclipse configuration #646
The README states: “The plugin adds a google-java-format formatter implementation that can be configured in Window > Preferences > Java > Code Style > Formatter > Formatter Implementation.”
It is unclear what can be configured exactly, or whether anything can be configured, considering the note in the same file: “There is no configurability as to the formatter's algorithm for formatting. This is a deliberate design decision to unify our code formatting on a single format.”
Relatedly, the role of the Active profile dialog box is not clear.
I just tested changing the number of spaces in the active profile, and this seems to have no effect on Source / Format when the google-java-format implementation is selected.
Please add some explanations about what can be configured and which Active profile should be chosen or indicate if it is supposed to have no effect.
Reacted by Cies Breijs, AppLeYArD2901, Laurent, Florian Lacreuse and Lonzak
Also seeing the same thing. If the google-java-format formatter is selected (with 1.13.0 and the latest version of Eclipse), when I try to format code, absolutely nothing happens. If I go back to the Eclipse built-in formatter, it does format the code. I'm not sure if I'm missing a step or if the plugin is currently broken?
Same here - unclear what to select in the "active profile". Tried all profiles but nothing happens when I format the code.
How is this supposed to work?
Activity
oliviercailloux commentedon Aug 23, 2021
Possibly related to #260.
seeruk commentedon Jan 11, 2022
Also seeing the same thing. If the google-java-format formatter is selected (with 1.13.0 and the latest version of Eclipse), when I try to format code, absolutely nothing happens. If I go back to the Eclipse built-in formatter, it does format the code. I'm not sure if I'm missing a step or if the plugin is currently broken?
greg-dennis commentedon Mar 14, 2022
Still happening with the 1.15 release.
lalmeras commentedon May 7, 2024
Same here. Does the documentation need to be updated, or are there anything I'm not doing right ?
florianlacreuse commentedon May 15, 2024
Same here with Eclipse AND IntelliJ.
IntelliJ Scheme XML file.
Lonzak commentedon Jun 25, 2025
Same here - unclear what to select in the "active profile". Tried all profiles but nothing happens when I format the code.
How is this supposed to work?
lalmeras commentedon Jun 25, 2025
Here is a snapshot of a working setup:
Formatter implementation choice is provided by google java format extension.
Active profile choice is provided by importing https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml
If you want to obtain a consistent result with cli or maven plugin formatting, you also need to remove all import group in
organize importssetting:If it still not work, check that you added the following options to eclipse launch (see https://github.com/google/google-java-format?tab=readme-ov-file#as-a-library)