forked from Game-Dev-Dep/Shittim_Canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
77 lines (58 loc) · 1.33 KB
/
.editorconfig
File metadata and controls
77 lines (58 loc) · 1.33 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# 顶级 EditorConfig 文件
root = true
###############################
# 编码设置
###############################
# 所有 C# 文件使用 UTF-8 编码
[*.cs]
charset = utf-8
# JSON 文件使用 UTF-8 编码
[*.json]
charset = utf-8
# YAML 文件(Unity 场景和预制件)使用 UTF-8 编码
[*.yaml]
charset = utf-8
# Shader 文件使用 UTF-8 编码
[*.shader]
charset = utf-8
# 文本文件和其他文件使用 UTF-8 编码
[*.txt]
charset = utf-8
###############################
# 缩进和空格规则
###############################
# C# 文件使用 4 个空格缩进
[*.cs]
indent_style = space
indent_size = 4
# JSON 文件使用 2 个空格缩进
[*.json]
indent_style = space
indent_size = 2
# YAML 文件使用 2 个空格缩进
[*.yaml]
indent_style = space
indent_size = 2
# Shader 文件使用 4 个空格缩进
[*.shader]
indent_style = space
indent_size = 4
# 文本文件使用 4 个空格缩进
[*.txt]
indent_style = space
indent_size = 4
###############################
# 行尾规则
###############################
# 确保所有文件以换行符结尾
[*]
insert_final_newline = true
# 统一使用 LF 换行符(适用于跨平台项目)
[*]
end_of_line = lf
###############################
# 其他规则
###############################
# 删除行尾的多余空格
[*]
trim_trailing_whitespace = true