forked from EvilMindDevs/hms-unity-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
56 lines (51 loc) · 2.01 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
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
root = true
## Global ##
[*]# Matches all files
# Use UTF-8 encoding
charset = utf-8
# Use Unix-style newlines
end_of_line = lf
# Insert a final newline
insert_final_newline = true
# Trim trailing whitespace
trim_trailing_whitespace = true
## Indentation and Spacing ##
[*]
indent_size = 4
indent_style = space
tab_width = 4
[*.cs]
indent_size = 4
indent_style = space
tab_width = 4
[*.{csproj,xml,json}]
indent_size = 2
indent_style = space
tab_width = 2
# Matches C# files
[*.cs]
# Use K&R style for brackets
csharp_new_line_before_open_brace = all
# Use camelCase for naming
dotnet_naming_style.camel_case_style.capitalization = camel_case
# Use PascalCase for naming
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
# Use camelCase for private fields
dotnet_naming_rule.private_fields_should_be_camel_case.severity = suggestion
dotnet_naming_rule.private_fields_should_be_camel_case.symbols = private_fields
dotnet_naming_rule.private_fields_should_be_camel_case.style = camel_case_style
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
# Use PascalCase for public members
dotnet_naming_rule.public_members_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.public_members_should_be_pascal_case.symbols = public_members
dotnet_naming_rule.public_members_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.public_members.applicable_kinds = method, property, event, field
dotnet_naming_symbols.public_members.applicable_accessibilities = public
# Use PascalCase for constants
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
dotnet_naming_rule.constants_should_be_pascal_case.style = pascal_case_style
dotnet_naming_symbols.constants.applicable_kinds = field
dotnet_naming_symbols.constants.applicable_accessibilities = public, internal, protected, private
dotnet_naming_symbols.constants.required_modifiers = const