Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 845 Bytes

File metadata and controls

16 lines (12 loc) · 845 Bytes

Extracting Code Style from IntelliJ IDEA

1. Exporting Code Style Settings to a file

To export code style settings from IntelliJ IDEA to a file, go to Settings | Editor | Code Style and click on the gear icon next to the scheme name.

Exporting code style settings

2. Using IntelliJ's active code style directly

If you have your code style settings checked into version control (in your .idea directory), you can use the active code style directly in Spotless without exporting it to a file. The file can be found at .idea/codeStyles/Project.xml.

Upstream documentation

More details can be found in the IntelliJ IDEA documentation for the command line formatter, which is what Spotless uses under the hood.