Skip to content

Plugin and IDE formatting conflict with each other #1275

Description

@zelite

With these versions

IntelliJ IDEA 2025.2.1 (Ultimate Edition)
Build #IU-252.25557.131, built on August 27, 2025
google-java-format (1.28.0.0)

I have the google java format plugin active, and "reformat code" and "optimize imports" active on save.

According to the plugin documentation "When enabled, it will replace the normal Reformat Code and Optimize Imports actions."

But currently when I autoformat a file with ctrl+alt+L and then click out of the editor to trigger the auto save, then the file gets formatted again with different optimized imports.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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