This plugin allows you to integrate any Java formatter into your project.
Unlike other formatters, it uses the project's SDK instead of the IntelliJ VM. This solves the problem of formatters being unable to format code that uses a newer SDK.
The configuration panel allows you to select the main class and specify additional parameters.
The default formatter is configurable-google-java-format, which is based on google-java-format but with a line length of 120 characters.
Download the latest release from GitHub Releases and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Forked from MrDolch/external-java-formatter-intellij-plugin.
Plugin based on the IntelliJ Platform Plugin Template.