From 542db72ffd356a2a7d491910852e8d82c93f8fe0 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 10 Mar 2014 11:43:19 +0100 Subject: [PATCH] Add first draft of IDEA code formatting This commit provides a first attempt at defining a standard code formatting scheme for the Spring Framework in Intellij IDEA. These are the major changes compared to standard settings: * default indent option to use tab character instead of space for all languages * one space before the left brace of an array initializer * keep when reformating: multiple expressions in one line, simple blocks in one line * method declaration parameters: do not align when multiline * else, catch and finally on new line * keep one space before } (solely use to keep the space between the end of the last method and the end of the class) * minimum blank line after class header 0 (instead of 1) * Disabled Javadoc formatting * class count to trigger static import to 50 (to prevent import org.foo.*; instead of listing the classes of org.foo) * changed the import sequence to import in the following order: static imports, java.*, javax.*, others, org.springframework.*. Each sequence is separated by a space --- src/idea/spring-framework.xml | 264 ++++++++++++++++++++++++++++++++++ 1 file changed, 264 insertions(+) create mode 100644 src/idea/spring-framework.xml diff --git a/src/idea/spring-framework.xml b/src/idea/spring-framework.xml new file mode 100644 index 0000000000..627993edd3 --- /dev/null +++ b/src/idea/spring-framework.xml @@ -0,0 +1,264 @@ + + + + + +