-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
43 lines (34 loc) · 1.04 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
root = true # top-most https://EditorConfig.org file
[*]
charset = utf-8
end_of_line = lf
#indent_style = tab
#indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
[*.{c,h,cc,hh,cpp,hpp,cxx,hxx,c++,h++,inc,inl}]
indent_style = tab
indent_size = 4
[{CMakeLists.txt,*.cmake}]
indent_style = space
indent_size = 2
[{makefile,Makefile,*.mk}]
indent_style = tab #required
indent_size = 2
[*.md] # rule: MD009: 2+ spaces (or `\`) as for `<br/>`
indent_style = tab
indent_size = 4
#trim_trailing_whitespace = false # scrap this nonesence, better to use `\`
[{.gitconfig,.gitignore,.gitmodules}]
indent_style = tab
indent_size = 4
[*.{xml,y{a,}ml,json}]
indent_style = space #required
indent_size = 2
[*.{py,js,jsx,vue,ts,tsx,css,sass,scss,less}]
indent_style = space
indent_size = 4
### "experimental `.gitmodules` 5-space identation" to
#[.gitmodules] # align L1:`submodule "<name>"` with L2:`path = <name>`, like:
#indent_style = space #L1:[submodule "deps/imgui"]
#indent_size = 5 #L2: path = deps/imgui <-- 5-space tab