diff --git a/.editorconfig b/.editorconfig index 46d64e6f08..5ce3d79b66 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,3 +11,8 @@ charset = utf-8 [*.md] indent_style = space indent_size = 2 + +[*.java] +# Doc: https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0 +ij_java_imports_layout = java.**,|,javax.**,|,org.**,|,com.**,|,com.diffplug.**,|,* +ij_java_use_single_class_imports = true diff --git a/CHANGES.md b/CHANGES.md index a881390cb9..6d5f0b7ef1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ You might be looking for: * Visualize \r and \n as ␍ and ␊ when possible ([#465](https://github.com/diffplug/spotless/pull/465)) * Make end-of-lines visible when file contains whitespace and end-of-line issues at the same time ([#465](https://github.com/diffplug/spotless/pull/465)) * Print actual diff line instead of "1 more lines that didn't fit" ([#467](https://github.com/diffplug/spotless/issues/467)) +* Automatically configure import order for IntelliJ IDEA with `.editorconfig` ([#486](https://github.com/diffplug/spotless/issues/486)) ### Version 1.25.0 - October 6th 2019 (javadoc [lib](https://diffplug.github.io/spotless/javadoc/spotless-lib/1.25.0/) [lib-extra](https://diffplug.github.io/spotless/javadoc/spotless-lib-extra/1.25.0/), artifact [lib]([jcenter](https://bintray.com/diffplug/opensource/spotless-lib), [lib-extra]([jcenter](https://bintray.com/diffplug/opensource/spotless-lib-extra)))