You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`IntelliJ IDEA` is a powerful IDE for java, kotlin and many more languages. There are [specific variants](https://www.jetbrains.com/products/) for almost any modern language
1677
+
and a plethora of [plugins](https://plugins.jetbrains.com/).
1678
+
1679
+
Spotless provides access to IntelliJ IDEA's command line formatter.
1680
+
1681
+
```xml
1682
+
<configuration>
1683
+
<formats>
1684
+
<format>
1685
+
<includes>
1686
+
<include>src/main/**/*.java</include>
1687
+
<include>jbang/*.java</include>
1688
+
</includes>
1689
+
1690
+
<idea>
1691
+
<!-- if you have custom formatting rules, see below for how to extract/reference them -->
<!-- disable using default code style settings when no custom code style is defined for a file type (default: true) -->
1694
+
<withDefaults>false</withDefaults>
1695
+
<!-- if idea is not on your path, you must specify the path to the executable -->
1696
+
<binaryPath>/path/to/idea</binaryPath>
1697
+
</idea>
1698
+
</format>
1699
+
</formats>
1700
+
</configuration>
1701
+
```
1702
+
1703
+
### How to generate code style settings files
1704
+
See [here](../INTELLIJ_IDEA_SCREENSHOTS.md) for an explanation on how to extract or reference existing code style files.
1705
+
1706
+
### Limitations
1707
+
- Currently, only IntelliJ IDEA is supported - none of the other jetbrains IDE. Consider opening a PR if you want to change this.
1708
+
- Launching IntelliJ IDEA from the command line is pretty expensive and as of now, we do this for each file. If you want to change this, consider opening a PR.
1709
+
1669
1710
## Generic steps
1670
1711
1671
-
[Prettier](#prettier), [eclipse wtp](#eclipse-web-tools-platform), and [license header](#license-header) are available in every format, and they each have their own section. As mentioned in the [quickstart](#quickstart), there are a variety of simple generic steps which are also available in every format, here are examples of these:
1712
+
[Prettier](#prettier), [eclipse wtp](#eclipse-web-tools-platform), [IntelliJ IDEA](#intellij-idea)and [license header](#license-header) are available in every format, and they each have their own section. As mentioned in the [quickstart](#quickstart), there are a variety of simple generic steps which are also available in every format, here are examples of these:
1672
1713
1673
1714
```xml
1674
1715
<trimTrailingWhitespace /> <!-- trim trailing whitespaces -->
0 commit comments