Skip to content

Commit 94e1c9d

Browse files
committed
#321 - Provide importorder file and provide guidance for IntelliJ users.
Remove intellij-formatting.jar to avoid ambiguity in favor of the IntelliJ Eclipse Code Formatter plugin.
1 parent 80b16a3 commit 94e1c9d

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

etc/ide/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Spring Data Code Formatting Settings
2+
3+
This directory contains `eclipse-formatting.xml` and `springdata.importorder` settings files to be used with Eclipse and IntelliJ.
4+
5+
## Eclipse Setup
6+
7+
Import both files in Eclipse through the Preferences dialog.
8+
9+
## IntelliJ Setup
10+
11+
Use the IntelliJ [Eclipse Code Formatter](https://plugins.jetbrains.com/plugin/6546-eclipse-code-formatter) plugin to configure code formatting and import ordering with the newest Eclipse formatter version.
12+
13+
Additionally, make sure to configure your import settings in `Editor -> Code Style -> Java` with the following explicit settings:
14+
15+
* Use tab character indents
16+
* Class count to use import with `*`: 10
17+
* Names count to use static import with `*`: 1

etc/ide/intellij-formatting.jar

-1.51 KB
Binary file not shown.

etc/ide/springdata.importorder

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Organize Import Order
2+
#Mon Nov 14 09:58:12 CET 2016
3+
5=com
4+
4=org
5+
3=javax
6+
2=java
7+
1=
8+
0=\#

0 commit comments

Comments
 (0)