Add .editorconfig
authorPyry Haulos <phaulos@google.com>
Tue, 9 Aug 2016 20:19:35 +0000 (13:19 -0700)
committerPyry Haulos <phaulos@google.com>
Tue, 9 Aug 2016 20:19:35 +0000 (13:19 -0700)
Github uses tab width from .editorconfig when displaying code.

Change-Id: I9dcbe192ca21d7606a6ae56c747acd271562358c

.editorconfig [new file with mode: 0644]
.gitignore

diff --git a/.editorconfig b/.editorconfig
new file mode 100644 (file)
index 0000000..f6e168f
--- /dev/null
@@ -0,0 +1,9 @@
+root = true
+
+[*.{c,h,cpp,hpp,txt,md,inl,py,mk,java,sh,xml}]
+end_of_line = lf
+insert_final_newline = true
+charset = utf-8
+indent_style = tab
+indent_size = 4
+trim_trailing_whitespace = true
index 5b08902..dbd311c 100644 (file)
@@ -3,3 +3,4 @@
 *.user
 .*
 !.gitignore
+!.editorconfig