core-java/code-formatter
directory. You need to import the formatter from the mentioned directory in your IntelliJ IDEA properties.
Editor
-> Code Style
and click on 3 dots.Import Schema
-> IntelliJ IDEA code style XML
from the options and select the boyka-formatter.xml
file from the path mentioned above.Apply
and OK
buttons.Save Actions
plugin to your project. This plugin is used to format code files on save when working on the Java project.
To configure the plugin, open IntelliJ IDEA preferences window and expand Other Settings
and select Save Actions
.
A window similar to the following will be displayed, select all the options demonstrated here in the following screenshots.
Apply
and OK
buttons.