mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Add .editorconfig file
This is a fairly well supported file-type configuration for indentation and trailing space stripping. See editorconfig.org for details.
This commit is contained in:
parent
579631819f
commit
ce7c87fbda
1 changed files with 31 additions and 0 deletions
31
.editorconfig
Normal file
31
.editorconfig
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue