1+ # EditorConfig is awesome: https://EditorConfig.org
2+
3+ # top-most EditorConfig file
4+ root = true
5+
6+ # All files
7+ [* ]
8+ charset = utf-8
9+ end_of_line = crlf
10+ indent_style = space
11+ indent_size = 4
12+ insert_final_newline = true
13+ trim_trailing_whitespace = true
14+
15+ # C# files
16+ [* .cs ]
17+ # New line preferences
18+ csharp_new_line_before_open_brace = all
19+ csharp_new_line_before_else = true
20+ csharp_new_line_before_catch = true
21+ csharp_new_line_before_finally = true
22+ csharp_new_line_before_members_in_object_initializers = true
23+ csharp_new_line_before_members_in_anonymous_types = true
24+ csharp_new_line_between_query_expression_clauses = true
25+
26+ # Indentation preferences
27+ csharp_indent_case_contents = true
28+ csharp_indent_switch_labels = true
29+ csharp_indent_labels = one_less_than_current
30+ csharp_indent_block_contents = true
31+ csharp_indent_braces = false
32+ csharp_indent_case_contents_when_block = true
33+
34+ # Space preferences
35+ csharp_space_after_cast = false
36+ csharp_space_after_keywords_in_control_flow_statements = true
37+ csharp_space_between_method_call_parameter_list_parentheses = false
38+ csharp_space_between_method_declaration_parameter_list_parentheses = false
39+ csharp_space_between_parentheses = false
40+ csharp_space_before_colon_in_inheritance_clause = true
41+ csharp_space_after_colon_in_inheritance_clause = true
42+ csharp_space_around_binary_operators = before_and_after
43+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
44+ csharp_space_between_method_call_name_and_opening_parenthesis = false
45+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
46+
47+ # Wrapping preferences
48+ csharp_preserve_single_line_statements = true
49+ csharp_preserve_single_line_blocks = true
50+
51+ # XML project files
52+ [* .{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj} ]
53+ indent_size = 2
54+
55+ # XML config files
56+ [* .{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct} ]
57+ indent_size = 2
58+
59+ # JSON files
60+ [* .json ]
61+ indent_size = 2
62+
63+ # YAML files
64+ [* .{yml,yaml} ]
65+ indent_size = 2
66+
67+ # Markdown files
68+ [* .md ]
69+ trim_trailing_whitespace = false
70+
71+ # Shell scripts
72+ [* .sh ]
73+ end_of_line = lf
0 commit comments