[Bf-blender-cvs] [ce7c87fbda9] master: Add .editorconfig file

Campbell Barton noreply at git.blender.org
Mon Jun 18 18:11:52 CEST 2018


Commit: ce7c87fbda96cec7d1fe44c0b9e27e96748bfa8f
Author: Campbell Barton
Date:   Mon Jun 18 18:09:45 2018 +0200
Branches: master
https://developer.blender.org/rBce7c87fbda96cec7d1fe44c0b9e27e96748bfa8f

Add .editorconfig file

This is a fairly well supported file-type configuration
for indentation and trailing space stripping.

See editorconfig.org for details.

===================================================================

A	.editorconfig

===================================================================

diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 00000000000..d0e94a11ed0
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,31 @@
+# C/C++
+[*.{c,cc,h,hh,inl}]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+
+# CMake & Text
+[*.{cmake,txt}]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = tab
+indent_size = 4
+
+# Python
+[*.py]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = space
+indent_size = 4
+
+# Shell
+[*.sh]
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
+indent_style = tab
+indent_size = 4



More information about the Bf-blender-cvs mailing list