-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.editorconfig
More file actions
32 lines (26 loc) · 808 Bytes
/
.editorconfig
File metadata and controls
32 lines (26 loc) · 808 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
# EditorConfig enforces consistent code style across editors and CI
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
[*.md]
# Preserve Markdown's double-space line break convention
trim_trailing_whitespace = false
indent_size = 2
[*.{yml,yaml,json}]
indent_size = 2
[*.{csproj,props,targets,xml}]
indent_size = 2
[*.cs]
indent_size = 4
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
csharp_prefer_braces = when_multiline:suggestion
csharp_style_var_for_locals = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = false:suggestion