diff --git a/.gitignore b/.gitignore
index c715be0c..ad219abb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,20 +8,22 @@
# Package Files #
*.jar
-!gradle/wrapper/gradle-wrapper.jar
*.war
*.ear
-out
-.idea/workspace.xml
-
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
-
-**/.idea
+# IntelliJ
*.iml
-**/.gradle
-build
+.idea/*
+!.idea/codeStyles/
+out/
+!src/**/out/
+
+# Gradle
+.gradle/
+build/
+!src/**/build/
src/gen
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 00000000..884f57e2
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 00000000..79ee123c
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file