-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
42 lines (32 loc) · 887 Bytes
/
Copy path.editorconfig
File metadata and controls
42 lines (32 loc) · 887 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
36
37
38
39
40
41
42
# EditorConfig helps maintain consistent coding styles
# https://editorconfig.org
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_style = space
indent_size = 2
[*.json]
indent_style = space
indent_size = 2
[*.{csproj,props,targets}]
indent_style = space
indent_size = 2
[*.cs]
# Namespace preferences
csharp_style_namespace_declarations = file_scoped:suggestion
# Expression-level preferences
csharp_style_prefer_switch_expression = true:suggestion
csharp_style_prefer_pattern_matching = true:suggestion
# Modifier preferences
dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
# Organize usings
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false