google / google/google-java-format

Plugin and IDE formatting conflict with each other

Abierto
#1,275 0 comentarios 4 reacciones 0 asignados Ver en GitHub
IntelliJ
Lenguaje dominante
Java
Estrellas
6.2k
Forks
937
Merge medio
6 min
PR fusionados (30 d)
3

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.