-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.editorconfig
29 lines (19 loc) · 1.39 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
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# 当打开一个文件时,EditorConfig插件会在打开文件的目录和其每一级父目录查找.editorconfig文件,直到有一个配置文件root=true。
# EditorConfig配置文件从上往下读取,并且路径最近的文件最后被读取。匹配的配置属性按照属性应用在代码上,所以最接近代码文件的属性优先级最高。
# indent_style: 设置缩进风格,tab或者空格。tab是hard tabs,space为soft tabs。
# indent_size: 缩进的宽度,即列数,整数。如果indent_style为tab,则此属性默认为tab_width。
# tab_width: 设置tab的列数。默认是indent_size。
# end_of_line: 换行符,lf、cr和crlf, window系统:crlf,linux/unix系统:lf,mac系统:cr。
# 因为少一个cr在windows上不会造成太大的麻烦,但多一个cr在*nix系统上就是个大麻烦,故一般用lf。
# charset: 编码,latin1、utf-8、utf-8-bom、utf-16be和utf-16le,不建议使用utf-8-bom。
# trim_trailing_whitespace: 设为true表示会除去换行行首的任意空白字符。
# insert_final_newline: 设为true表明使文件以一个空白行结尾
# root: 表明是最顶层的配置文件,发现设为true时,才会停止查找.editorconfig文件。