google / google/google-java-format

Allow chaining native Reformat Code with google-java-format IntelliJ Plugin

Abierto
#1,250 0 comentarios 0 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

The documentation for Using the formatter > IntelliJ/Android Studio/JetBrains IDEs states: "When enabled, the plugin fully replaces the native ​​Reformat Code​​ and ​​Optimize Imports​​ actions."

This design prevents developers from leveraging IntelliJ's built-in Code Style features (e.g., automatically adding a blank line after class headers via Editor > Code Style > Java > Blank Lines > After Class Header), even though this requirement aligns with our team's coding conventions and does not conflict with google-java-format rules.

Our current workaround is to first ​​disable the google-java-format plugin​​ for built-in code formatting, then ​​re-enable it​​ to apply Google Java formatting rules. This operation is very tedious and makes us feel very sad.

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.