You can reformat each file to apply your style in Code> Reformat Code. On Windows, the associated shortcut is Ctrl-Alt-L.
Choosing a package will give you the opportunity to reformat all the source files, including subdirectories, optionally filtered by file extension.
This is as of IntelliJ IDEA 2018.2.3 for Java files.
source
share