-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_editorconfig
More file actions
59 lines (46 loc) · 1.18 KB
/
dot_editorconfig
File metadata and controls
59 lines (46 loc) · 1.18 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
# 2-space indentation (common standards)
[*.{yaml,yml,toml,rb,erb,js,mjs,cjs,jsx,ts,mts,cts,tsx,json,jsonc,css,scss,sass,less,html,xml,vue,svelte,astro,lua,graphql,gql}]
indent_size = 2
# Tab indentation (language standards)
[*.go]
indent_style = tab
tab_width = 4
# Makefiles must use tabs
[{Makefile,makefile,*.mk,*.mak}]
indent_style = tab
tab_width = 4
# Python: 4 spaces (PEP 8)
[*.py]
indent_size = 4
# Rust: 4 spaces (rustfmt default)
[*.rs]
indent_size = 4
# C/C++: 4 spaces (common, but varies by project)
[*.{c,cpp,cc,cxx,h,hpp,hh,hxx}]
indent_size = 4
# Java/Kotlin: 4 spaces
[*.{java,kt,kts,gradle}]
indent_size = 4
# C#: 4 spaces
[*.cs]
indent_size = 4
# Shell scripts: 2 spaces (Google style guide)
[*.{sh,bash,zsh,fish}]
indent_size = 2
[{*.bashrc,*.bash_profile,*.zshrc,*.zprofile,*dot_bashrc,*dot_zshrc}]
indent_size = 2
# Config files: 2 spaces
[{**/.ssh/*config,*.ini,*.conf,*.config,*.cfg,*.env*,*.properties}]
indent_size = 2
# Markdown: 4 spaces, allow trailing whitespace
[*.md]
indent_size = 2
trim_trailing_whitespace = false