Skip to content

The google-java-formatter eclipse plugin doesn't change the format of my code #1077

Open
@gustabart

Description

@gustabart

Hi,
I drop the google-java-format-eclipse-plugin-1.20.0.jar file in dropins eclipse folder.
I set google-java-formatter in my eclipse workspace and project configuration.
However, the formatter hasen't effect over my code.

I do Ctrl-Shift+F or from the contextual menu, but the java code format remains the same.

My eclipse version is:

Eclipse IDE for Java Developers (includes Incubating components)
Version: 2023-12 (4.30.0)
Build id: 20231201-2043
OS: Linux, v.5.14.0-1052-oem, x86_64 / gtk 3.24.33, WebKit 2.42.5
Java vendor: Eclipse Adoptium
Java runtime version: 21.0.2+13-LTS
Java version: 21.0.2

I tried too with previous versions of the formatter plugin but the same result.
I thing that got my attention was the Preview. All in a same line:
image

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions