Skip to content

Commit c621227

Browse files
committed
Create .editorconfig
1 parent c8e15b1 commit c621227

File tree

1 file changed

+278
-0
lines changed

1 file changed

+278
-0
lines changed

.editorconfig

Lines changed: 278 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,278 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*.cs]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
indent_style = space
14+
indent_size = 4
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.json]
21+
indent_style = space
22+
indent_size = 2
23+
end_of_line = lf
24+
charset = utf-8
25+
trim_trailing_whitespace = true
26+
insert_final_newline = true
27+
28+
# CSharp and Visual Basic code style settings:
29+
[*.cs]
30+
dotnet_style_require_accessibility_modifiers = always:suggestion
31+
dotnet_style_readonly_field = true:warning
32+
33+
# CSharp and Visual Basic code style settings:
34+
[*.cs]
35+
dotnet_style_object_initializer = true:suggestion
36+
dotnet_style_collection_initializer = true:suggestion
37+
dotnet_style_prefer_auto_properties = true:suggestion
38+
39+
# CSharp code style settings:
40+
[*.cs]
41+
csharp_style_var_for_built_in_types = true:suggestion
42+
csharp_style_var_when_type_is_apparent = true:suggestion
43+
csharp_style_var_elsewhere = true:suggestion
44+
45+
# CSharp code style settings:
46+
[*.cs]
47+
csharp_style_expression_bodied_methods = false:silent
48+
csharp_style_expression_bodied_constructors = false:silent
49+
csharp_style_expression_bodied_operators = false:silent
50+
csharp_style_expression_bodied_properties = true:suggestion
51+
csharp_style_expression_bodied_indexers = true:suggestion
52+
csharp_style_expression_bodied_accessors = true:suggestion
53+
54+
# CSharp code style settings:
55+
[*.cs]
56+
csharp_style_inlined_variable_declaration = true:suggestion
57+
58+
# CSharp code style settings:
59+
[*.cs]
60+
csharp_prefer_braces = true:silent
61+
62+
# .NET formatting settings:
63+
[*.cs]
64+
dotnet_sort_system_directives_first = true
65+
66+
# CSharp formatting settings:
67+
[*.cs]
68+
csharp_new_line_before_open_brace = all
69+
csharp_new_line_before_else = true
70+
csharp_new_line_before_catch = true
71+
csharp_new_line_before_finally = true
72+
csharp_new_line_before_members_in_object_initializers = true
73+
csharp_new_line_before_members_in_anonymous_types = true
74+
csharp_new_line_between_query_expression_clauses = true
75+
76+
# CSharp formatting settings:
77+
[*.cs]
78+
csharp_indent_case_contents = true
79+
csharp_indent_switch_labels = true
80+
81+
# CSharp formatting settings:
82+
[*.cs]
83+
csharp_space_after_cast = false
84+
csharp_space_after_keywords_in_control_flow_statements = true
85+
csharp_space_between_method_declaration_parameter_list_parentheses = false
86+
csharp_space_between_method_call_parameter_list_parentheses = false
87+
csharp_space_between_parentheses = false
88+
csharp_space_before_colon_in_inheritance_clause = true
89+
csharp_space_after_colon_in_inheritance_clause = true
90+
csharp_space_around_binary_operators = before_and_after
91+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
92+
csharp_space_between_method_call_name_and_opening_parenthesis = false
93+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
94+
95+
# CSharp formatting settings:
96+
[*.cs]
97+
csharp_preserve_single_line_statements = false
98+
csharp_preserve_single_line_blocks = false
99+
100+
# Rider Specific Settings:
101+
102+
## Blank Lines
103+
104+
[*.cs]
105+
csharp_blank_lines_around_region = 1
106+
csharp_blank_lines_inside_region = 1
107+
csharp_blank_lines_before_single_line_comment = 1
108+
csharp_keep_blank_lines_in_declarations = 1
109+
csharp_remove_blank_lines_near_braces_in_declarations = false
110+
csharp_blank_lines_after_start_comment = 1
111+
csharp_blank_lines_between_using_groups = 0
112+
csharp_blank_lines_after_using_list = 0
113+
csharp_blank_lines_around_namespace = 1
114+
csharp_blank_lines_inside_namespace = 1
115+
csharp_blank_lines_around_type = 1
116+
csharp_blank_lines_inside_type = 1
117+
csharp_blank_lines_around_field = 1
118+
csharp_blank_lines_around_single_line_field = 1
119+
csharp_blank_lines_around_property = 1
120+
csharp_blank_lines_around_single_line_property = 1
121+
csharp_blank_lines_around_auto_property = 1
122+
csharp_blank_lines_around_single_line_auto_property = 1
123+
csharp_blank_lines_around_invocable = 1
124+
csharp_blank_lines_around_single_line_invocable = 1
125+
csharp_blank_lines_around_local_method = 1
126+
csharp_keep_blank_lines_in_code = 1
127+
csharp_remove_blank_lines_near_braces_in_code = false
128+
csharp_blank_lines_around_local_method = 1
129+
csharp_blank_lines_around_single_line_local_method = 1
130+
csharp_blank_lines_before_control_transfer_statements = 1
131+
csharp_blank_lines_after_control_transfer_statements = 1
132+
csharp_blank_lines_before_block_statements = 1
133+
csharp_blank_lines_after_block_statements = 1
134+
csharp_blank_lines_before_multiline_statements = 1
135+
csharp_blank_lines_after_multiline_statements = 1
136+
137+
## Brace Layout
138+
139+
[*.cs]
140+
csharp_type_declaration_braces = next_line
141+
csharp_indent_inside_namespace = true
142+
csharp_invocable_declaration_braces = next_line
143+
csharp_anonymous_method_declaration_braces = next_line
144+
csharp_accessor_owner_declaration_braces = next_line
145+
csharp_accessor_declaration_braces = next_line
146+
csharp_case_block_braces = next_line
147+
csharp_initializer_braces = next_line
148+
csharp_other_braces = next_line
149+
csharp_allow_comment_after_lbrace = false
150+
csharp_empty_block_style = multiline
151+
152+
## Code Style
153+
154+
csharp_for_built_in_types = use_var
155+
csharp_for_simple_types = use_var
156+
csharp_for_other_types = use_var
157+
csharp_prefer_explicit_discard_declaration = true
158+
csharp_instance_members_qualify_members = none
159+
csharp_instance_members_qualify_declared_in = this_class
160+
csharp_default_private_modifier = explicit
161+
csharp_default_internal_modifier = explicit
162+
163+
## Line Breaks
164+
165+
[*.cs]
166+
csharp_place_type_attribute_on_same_line = false
167+
csharp_place_method_attribute_on_same_line = false
168+
csharp_place_accessorholder_attribute_on_same_line = false
169+
csharp_place_accessor_attribute_on_same_line = false
170+
csharp_place_field_attribute_on_same_line = false
171+
172+
csharp_keep_existing_declaration_block_arrangement = false
173+
csharp_place_abstract_accessorholder_on_single_line = true
174+
csharp_place_simple_accessorholder_on_single_line = false
175+
csharp_place_accessor_with_attrs_holder_on_single_line = true
176+
csharp_place_simple_accessor_on_single_line = true
177+
csharp_place_simple_method_on_single_line = false
178+
179+
## Spaces
180+
181+
[*.cs]
182+
csharp_extra_spaces = remove_all
183+
csharp_space_after_keywords_in_control_flow_statements = true
184+
csharp_space_between_method_call_name_and_opening_parenthesis = false
185+
csharp_space_before_typeof_parentheses = false
186+
csharp_space_before_default_parentheses = false
187+
csharp_space_before_checked_parentheses = false
188+
csharp_space_before_sizeof_parentheses = false
189+
csharp_space_before_nameof_parentheses = false
190+
csharp_space_between_keyword_and_expression = true
191+
csharp_space_between_keyword_and_type = true
192+
csharp_space_within_if_parentheses = false
193+
csharp_space_within_while_parentheses = false
194+
csharp_space_within_catch_parentheses = false
195+
csharp_space_within_switch_parentheses = false
196+
csharp_space_within_for_parentheses = false
197+
csharp_space_within_foreach_parentheses = false
198+
csharp_space_within_using_parentheses = false
199+
csharp_space_within_lock_parentheses = false
200+
csharp_space_within_fixed_parentheses = false
201+
csharp_space_within_parentheses = false
202+
csharp_space_between_typecast_parentheses = false
203+
csharp_space_between_method_declaration_parameter_list_parentheses = false
204+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
205+
csharp_space_between_method_call_parameter_list_parentheses = false
206+
csharp_space_within_typeof_parentheses = false
207+
csharp_space_within_default_parentheses = false
208+
csharp_space_within_checked_parentheses = false
209+
csharp_space_within_sizeof_parentheses = false
210+
csharp_space_within_nameof_parentheses = false
211+
csharp_space_before_open_square_brackets = false
212+
csharp_space_between_square_brackets = false
213+
csharp_space_between_empty_square_brackets = false
214+
csharp_space_before_type_parameter_angle = false
215+
csharp_space_before_type_argument_angle = false
216+
csharp_space_within_type_parameter_angles = false
217+
csharp_space_within_type_argument_angles = false
218+
csharp_space_before_singleline_accessorholder = true
219+
csharp_space_in_singleline_accessorholder = true
220+
csharp_space_between_accessors_in_singleline_property = true
221+
csharp_space_within_empty_braces = true
222+
csharp_space_in_singleline_method = true
223+
csharp_space_in_singleline_anonymous_method = true
224+
csharp_space_within_single_line_array_initializer_braces = true
225+
csharp_space_around_assignment_op = true
226+
csharp_space_around_logical_op = true
227+
csharp_space_around_equality_op = true
228+
csharp_space_around_relational_op = true
229+
csharp_space_around_bitwise_op = true
230+
csharp_space_around_additive_op = true
231+
csharp_space_around_multiplicative_op = true
232+
csharp_space_around_shift_op = true
233+
csharp_space_around_nullcoalescing_op = true
234+
csharp_space_around_arrow_op = true
235+
csharp_space_after_logical_not_op = false
236+
csharp_space_after_unary_minus_op = false
237+
csharp_space_after_unary_plus_op = false
238+
csharp_space_after_ampersand_op = false
239+
csharp_space_after_asterik_op = false
240+
csharp_space_near_postfix_and_prefix_op = false
241+
csharp_space_before_ternary_quest = true
242+
csharp_space_after_ternary_quest = true
243+
csharp_space_before_ternary_colon = true
244+
csharp_space_after_ternary_colon = true
245+
csharp_space_before_comma = false
246+
csharp_space_after_comma = true
247+
csharp_space_before_semicolon_in_for_statement = false
248+
csharp_space_after_semicolon_in_for_statement = true
249+
csharp_space_before_semicolon = false
250+
csharp_space_before_colon_in_inheritance_clause = true
251+
csharp_space_after_colon_in_inheritance_clause = true
252+
csharp_space_before_type_parameter_constraint_colon = true
253+
csharp_space_after_type_parameter_constraint_colon = true
254+
csharp_space_before_colon_in_case = false
255+
csharp_space_after_colon_in_case = true
256+
csharp_space_before_attribute_colon = true
257+
csharp_space_after_attribute_colon = true
258+
csharp_space_between_attribute_sections = true
259+
csharp_space_between_square_brackets = false
260+
csharp_space_after_attributes = true
261+
csharp_space_after_cast = false
262+
csharp_space_around_dot = false
263+
csharp_space_around_lambda_arrow = true
264+
csharp_space_before_pointer_asterik_declaration = false
265+
csharp_space_before_nullable_mark = false
266+
csharp_space_around_alias_eq = true
267+
csharp_space_before_trailing_comment = true
268+
csharp_space_after_operator_keyword = true
269+
270+
## Resharper
271+
272+
[*.cs]
273+
resharper_check_namespace_highlighting = do_not_show
274+
resharper_inconsistent_naming_highlighting = do_not_show
275+
resharper_member_can_be_private_global_highlighting = do_not_show
276+
resharper_unused_member_global_highlighting = do_not_show
277+
resharper_introduce_optional_parameters_global_highlighting = do_not_show
278+
resharper_delegate_subtraction_highlighting = do_not_show

0 commit comments

Comments
 (0)