-
-
Notifications
You must be signed in to change notification settings - Fork 707
Expand file tree
/
Copy path.editorconfig
More file actions
35 lines (28 loc) · 657 Bytes
/
.editorconfig
File metadata and controls
35 lines (28 loc) · 657 Bytes
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
root = true
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# Swift, Objective-C, C++ — 4-space indent matching .swiftformat
[*.{swift,m,mm,h,hpp,cpp,cc}]
indent_style = space
indent_size = 4
# Config, markup, web
[*.{yml,yaml,json,xml,plist,xcconfig}]
indent_style = space
indent_size = 2
# Ruby (fastlane)
[*.{rb,gemspec}]
indent_style = space
indent_size = 2
# Shell scripts
[*.{sh,bash,zsh}]
indent_style = space
indent_size = 2
# Makefiles require hard tabs
[Makefile]
indent_style = tab
# Markdown — preserve trailing spaces (intentional line breaks)
[*.md]
trim_trailing_whitespace = false