forked from 11273/goofish-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
30 lines (24 loc) · 1.09 KB
/
Copy path.editorconfig
File metadata and controls
30 lines (24 loc) · 1.09 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
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true # 表示是最顶层的配置文件,停止向上查找
# All files - 所有文件的默认配置
[*]
charset = utf-8 # 字符编码:UTF-8(支持中文、emoji等)
end_of_line = lf # 换行符:LF(Unix风格)
insert_final_newline = true # 文件末尾添加空行
trim_trailing_whitespace = true # 删除行尾空格
indent_style = space # 缩进风格:空格
indent_size = 2 # 缩进大小:2个空格
# Markdown files - Markdown 特殊配置
[*.md]
trim_trailing_whitespace = false # 保留行尾空格(Markdown中两个空格表示换行)
# Package files - 配置文件
[*.{json,yml,yaml}]
indent_size = 2 # JSON/YAML 使用 2 空格
# TypeScript/JavaScript files
[*.{ts,tsx,js,jsx}]
indent_size = 2 # JS/TS 使用 2 空格
quote_type = single # 使用单引号(部分编辑器支持)
# Makefile - 特殊文件
[Makefile]
indent_style = tab # Makefile 必须使用 Tab