From d87aabd0c8a9709fbb9c0d11f24667125d6334a2 Mon Sep 17 00:00:00 2001 From: Le Tien Tai Date: Tue, 29 Mar 2016 13:48:41 +0700 Subject: [PATCH 1/3] Add the eclipse formatter configuration - This is an adapted version for the default Square.xml, aim to be used with the Eclipse formatter plugin for Intellij Idea and Netbeans. --- eclipse/square.xml | 296 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 eclipse/square.xml diff --git a/eclipse/square.xml b/eclipse/square.xml new file mode 100644 index 0000000..387d6d4 --- /dev/null +++ b/eclipse/square.xml @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c4d7b89d750ae13c82ee893f56f5dddda5b72f37 Mon Sep 17 00:00:00 2001 From: Le Tien Tai Date: Tue, 29 Mar 2016 14:19:50 +0700 Subject: [PATCH 2/3] Update readme.md to notice about Eclipse setting. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 9ad7c0e..a909e9e 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,16 @@ Installation * Open IntelliJ Project Settings -> Code Styles, change the code style for the project to the one you want. +Eclipse Formatter users +----------------------- + +For team using both Eclipse and Intellij, you should install the [Eclipse Formatter +Plugin][eclispe_formatter_plugin_link], and import `eclipse/square.xml` into +your plugin/Eclipse configuration. License ------- [![Public domain](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/legalcode) + +[eclispe_formatter_plugin_link]: https://plugins.jetbrains.com/plugin/6546 From e72c3ef6e8699d2eb526f9b4b5ce81147c22b57b Mon Sep 17 00:00:00 2001 From: Le Tien Tai Date: Tue, 29 Mar 2016 16:17:14 +0700 Subject: [PATCH 3/3] Make /* and */ be on their own line --- eclipse/square.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eclipse/square.xml b/eclipse/square.xml index 387d6d4..918aecd 100644 --- a/eclipse/square.xml +++ b/eclipse/square.xml @@ -6,7 +6,7 @@ - +