-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy path.editorconfig
More file actions
48 lines (36 loc) · 1.35 KB
/
.editorconfig
File metadata and controls
48 lines (36 loc) · 1.35 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
# This file is the top-most EditorConfig file. Do not inherit from outside folders.
root = true
#############################
# Deviates from the default .editorconfig file:
# https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options#example-editorconfig-file
#############################
# C# files
[*.cs]
#### Core EditorConfig Options ####
charset = utf-8
trim_trailing_whitespace = true
indent_size = 2
#### .NET Coding Conventions ####
# Organize usings
dotnet_sort_system_directives_first = true
#### C# Coding Conventions ####
# var preferences
csharp_style_var_elsewhere = true
csharp_style_var_for_built_in_types = true
csharp_style_var_when_type_is_apparent = true
# Expression-bodied members
csharp_style_expression_bodied_constructors = true
csharp_style_expression_bodied_methods = true
csharp_style_expression_bodied_operators = true
# Code-block preferences
csharp_prefer_braces = false
csharp_style_namespace_declarations = file_scoped
#### C# Formatting Rules ####
# New line preferences
csharp_new_line_before_catch = false
csharp_new_line_before_else = false
csharp_new_line_before_finally = false
csharp_new_line_before_members_in_anonymous_types = false
csharp_new_line_before_members_in_object_initializers = false
csharp_new_line_before_open_brace = none
csharp_new_line_between_query_expression_clauses = false