google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

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

Open yelijing18 opened this issue 8 months ago • 0 comments

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.

yelijing18 avatar Apr 16 '25 06:04 yelijing18