Skip to content

Commit 35f9003

Browse files
committed
Add vscode configurations files
1 parent 468a9f2 commit 35f9003

4 files changed

Lines changed: 397 additions & 0 deletions

File tree

.editorconfig

Lines changed: 378 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,378 @@
1+
root = true
2+
3+
# All files
4+
[*]
5+
indent_style = space
6+
7+
# Xml files
8+
[*.xml]
9+
indent_size = 2
10+
11+
# C# files
12+
[*.cs]
13+
14+
#### Core EditorConfig Options ####
15+
16+
# Indentation and spacing
17+
indent_size = 4
18+
tab_width = 4
19+
20+
# New line preferences
21+
insert_final_newline = false
22+
23+
#### .NET Coding Conventions ####
24+
[*.{cs,vb}]
25+
26+
# Organize usings
27+
dotnet_separate_import_directive_groups = true
28+
dotnet_sort_system_directives_first = true
29+
file_header_template = unset
30+
31+
# this. and Me. preferences
32+
dotnet_style_qualification_for_event = false:silent
33+
dotnet_style_qualification_for_field = false:silent
34+
dotnet_style_qualification_for_method = false:silent
35+
dotnet_style_qualification_for_property = false:silent
36+
37+
# Language keywords vs BCL types preferences
38+
dotnet_style_predefined_type_for_locals_parameters_members = true:silent
39+
dotnet_style_predefined_type_for_member_access = true:silent
40+
41+
# Parentheses preferences
42+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
43+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
44+
dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
45+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
46+
47+
# Modifier preferences
48+
dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
49+
50+
# Expression-level preferences
51+
dotnet_style_coalesce_expression = true:suggestion
52+
dotnet_style_collection_initializer = true:suggestion
53+
dotnet_style_explicit_tuple_names = true:suggestion
54+
dotnet_style_namespace_match_folder = true:suggestion
55+
dotnet_style_null_propagation = true:suggestion
56+
dotnet_style_object_initializer = true:suggestion
57+
dotnet_style_operator_placement_when_wrapping = beginning_of_line
58+
dotnet_style_prefer_auto_properties = true:suggestion
59+
dotnet_style_prefer_collection_expression = when_types_loosely_match:suggestion
60+
dotnet_style_prefer_compound_assignment = true:suggestion
61+
dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion
62+
dotnet_style_prefer_conditional_expression_over_return = true:suggestion
63+
dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed:suggestion
64+
dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
65+
dotnet_style_prefer_inferred_tuple_names = true:suggestion
66+
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
67+
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion
68+
dotnet_style_prefer_simplified_interpolation = true:suggestion
69+
70+
# Field preferences
71+
dotnet_style_readonly_field = true:warning
72+
73+
# Parameter preferences
74+
dotnet_code_quality_unused_parameters = all:suggestion
75+
76+
# Suppression preferences
77+
dotnet_remove_unnecessary_suppression_exclusions = none
78+
79+
#### C# Coding Conventions ####
80+
[*.cs]
81+
82+
# var preferences
83+
csharp_style_var_elsewhere = false:silent
84+
csharp_style_var_for_built_in_types = false:silent
85+
csharp_style_var_when_type_is_apparent = false:silent
86+
87+
# Expression-bodied members
88+
csharp_style_expression_bodied_accessors = true:silent
89+
csharp_style_expression_bodied_constructors = false:silent
90+
csharp_style_expression_bodied_indexers = true:silent
91+
csharp_style_expression_bodied_lambdas = true:suggestion
92+
csharp_style_expression_bodied_local_functions = false:silent
93+
csharp_style_expression_bodied_methods = false:silent
94+
csharp_style_expression_bodied_operators = false:silent
95+
csharp_style_expression_bodied_properties = true:silent
96+
97+
# Pattern matching preferences
98+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
99+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
100+
csharp_style_prefer_extended_property_pattern = true:suggestion
101+
csharp_style_prefer_not_pattern = true:suggestion
102+
csharp_style_prefer_pattern_matching = true:silent
103+
csharp_style_prefer_switch_expression = true:suggestion
104+
105+
# Null-checking preferences
106+
csharp_style_conditional_delegate_call = true:suggestion
107+
108+
# Modifier preferences
109+
csharp_prefer_static_anonymous_function = true:suggestion
110+
csharp_prefer_static_local_function = true:warning
111+
csharp_preferred_modifier_order = public,private,protected,internal,file,const,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion
112+
csharp_style_prefer_readonly_struct = true:suggestion
113+
csharp_style_prefer_readonly_struct_member = true:suggestion
114+
115+
# Code-block preferences
116+
csharp_prefer_braces = true:silent
117+
csharp_prefer_simple_using_statement = true:suggestion
118+
csharp_style_namespace_declarations = file_scoped:suggestion
119+
csharp_style_prefer_method_group_conversion = true:silent
120+
csharp_style_prefer_primary_constructors = true:suggestion
121+
csharp_style_prefer_top_level_statements = true:silent
122+
123+
# Expression-level preferences
124+
csharp_prefer_simple_default_expression = true:suggestion
125+
csharp_style_deconstructed_variable_declaration = true:suggestion
126+
csharp_style_implicit_object_creation_when_type_is_apparent = true:suggestion
127+
csharp_style_inlined_variable_declaration = true:suggestion
128+
csharp_style_prefer_index_operator = true:suggestion
129+
csharp_style_prefer_local_over_anonymous_function = true:suggestion
130+
csharp_style_prefer_null_check_over_type_check = true:suggestion
131+
csharp_style_prefer_range_operator = true:suggestion
132+
csharp_style_prefer_tuple_swap = true:suggestion
133+
csharp_style_prefer_utf8_string_literals = true:suggestion
134+
csharp_style_throw_expression = true:suggestion
135+
csharp_style_unused_value_assignment_preference = discard_variable:suggestion
136+
csharp_style_unused_value_expression_statement_preference = discard_variable:silent
137+
138+
# 'using' directive preferences
139+
csharp_using_directive_placement = outside_namespace:silent
140+
141+
#### C# Formatting Rules ####
142+
143+
# New line preferences
144+
csharp_new_line_before_catch = true
145+
csharp_new_line_before_else = true
146+
csharp_new_line_before_finally = true
147+
csharp_new_line_before_members_in_anonymous_types = true
148+
csharp_new_line_before_members_in_object_initializers = true
149+
csharp_new_line_before_open_brace = all
150+
csharp_new_line_between_query_expression_clauses = true
151+
152+
# Indentation preferences
153+
csharp_indent_block_contents = true
154+
csharp_indent_braces = false
155+
csharp_indent_case_contents = true
156+
csharp_indent_case_contents_when_block = true
157+
csharp_indent_labels = one_less_than_current
158+
csharp_indent_switch_labels = true
159+
160+
# Space preferences
161+
csharp_space_after_cast = false
162+
csharp_space_after_colon_in_inheritance_clause = true
163+
csharp_space_after_comma = true
164+
csharp_space_after_dot = false
165+
csharp_space_after_keywords_in_control_flow_statements = true
166+
csharp_space_after_semicolon_in_for_statement = true
167+
csharp_space_around_binary_operators = before_and_after
168+
csharp_space_around_declaration_statements = false
169+
csharp_space_before_colon_in_inheritance_clause = true
170+
csharp_space_before_comma = false
171+
csharp_space_before_dot = false
172+
csharp_space_before_open_square_brackets = false
173+
csharp_space_before_semicolon_in_for_statement = false
174+
csharp_space_between_empty_square_brackets = false
175+
csharp_space_between_method_call_empty_parameter_list_parentheses = false
176+
csharp_space_between_method_call_name_and_opening_parenthesis = false
177+
csharp_space_between_method_call_parameter_list_parentheses = false
178+
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
179+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
180+
csharp_space_between_method_declaration_parameter_list_parentheses = false
181+
csharp_space_between_parentheses = false
182+
csharp_space_between_square_brackets = false
183+
184+
# Wrapping preferences
185+
csharp_preserve_single_line_blocks = true
186+
csharp_preserve_single_line_statements = true
187+
188+
#### Naming styles ####
189+
[*.{cs,vb}]
190+
191+
# Naming rules
192+
193+
dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.severity = suggestion
194+
dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.symbols = types_and_namespaces
195+
dotnet_naming_rule.types_and_namespaces_should_be_pascalcase.style = pascalcase
196+
197+
dotnet_naming_rule.interfaces_should_be_ipascalcase.severity = suggestion
198+
dotnet_naming_rule.interfaces_should_be_ipascalcase.symbols = interfaces
199+
dotnet_naming_rule.interfaces_should_be_ipascalcase.style = ipascalcase
200+
201+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.severity = suggestion
202+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.symbols = type_parameters
203+
dotnet_naming_rule.type_parameters_should_be_tpascalcase.style = tpascalcase
204+
205+
dotnet_naming_rule.methods_should_be_pascalcase.severity = suggestion
206+
dotnet_naming_rule.methods_should_be_pascalcase.symbols = methods
207+
dotnet_naming_rule.methods_should_be_pascalcase.style = pascalcase
208+
209+
dotnet_naming_rule.properties_should_be_pascalcase.severity = suggestion
210+
dotnet_naming_rule.properties_should_be_pascalcase.symbols = properties
211+
dotnet_naming_rule.properties_should_be_pascalcase.style = pascalcase
212+
213+
dotnet_naming_rule.events_should_be_pascalcase.severity = suggestion
214+
dotnet_naming_rule.events_should_be_pascalcase.symbols = events
215+
dotnet_naming_rule.events_should_be_pascalcase.style = pascalcase
216+
217+
dotnet_naming_rule.local_variables_should_be_camelcase.severity = suggestion
218+
dotnet_naming_rule.local_variables_should_be_camelcase.symbols = local_variables
219+
dotnet_naming_rule.local_variables_should_be_camelcase.style = camelcase
220+
221+
dotnet_naming_rule.local_constants_should_be_camelcase.severity = suggestion
222+
dotnet_naming_rule.local_constants_should_be_camelcase.symbols = local_constants
223+
dotnet_naming_rule.local_constants_should_be_camelcase.style = camelcase
224+
225+
dotnet_naming_rule.parameters_should_be_camelcase.severity = suggestion
226+
dotnet_naming_rule.parameters_should_be_camelcase.symbols = parameters
227+
dotnet_naming_rule.parameters_should_be_camelcase.style = camelcase
228+
229+
dotnet_naming_rule.public_fields_should_be_pascalcase.severity = suggestion
230+
dotnet_naming_rule.public_fields_should_be_pascalcase.symbols = public_fields
231+
dotnet_naming_rule.public_fields_should_be_pascalcase.style = pascalcase
232+
233+
dotnet_naming_rule.private_fields_should_be__camelcase.severity = suggestion
234+
dotnet_naming_rule.private_fields_should_be__camelcase.symbols = private_fields
235+
dotnet_naming_rule.private_fields_should_be__camelcase.style = _camelcase
236+
237+
dotnet_naming_rule.private_static_fields_should_be_s_camelcase.severity = suggestion
238+
dotnet_naming_rule.private_static_fields_should_be_s_camelcase.symbols = private_static_fields
239+
dotnet_naming_rule.private_static_fields_should_be_s_camelcase.style = s_camelcase
240+
241+
dotnet_naming_rule.public_constant_fields_should_be_pascalcase.severity = suggestion
242+
dotnet_naming_rule.public_constant_fields_should_be_pascalcase.symbols = public_constant_fields
243+
dotnet_naming_rule.public_constant_fields_should_be_pascalcase.style = pascalcase
244+
245+
dotnet_naming_rule.private_constant_fields_should_be_pascalcase.severity = suggestion
246+
dotnet_naming_rule.private_constant_fields_should_be_pascalcase.symbols = private_constant_fields
247+
dotnet_naming_rule.private_constant_fields_should_be_pascalcase.style = pascalcase
248+
249+
dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.severity = suggestion
250+
dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.symbols = public_static_readonly_fields
251+
dotnet_naming_rule.public_static_readonly_fields_should_be_pascalcase.style = pascalcase
252+
253+
dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.severity = suggestion
254+
dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.symbols = private_static_readonly_fields
255+
dotnet_naming_rule.private_static_readonly_fields_should_be_pascalcase.style = pascalcase
256+
257+
dotnet_naming_rule.enums_should_be_pascalcase.severity = suggestion
258+
dotnet_naming_rule.enums_should_be_pascalcase.symbols = enums
259+
dotnet_naming_rule.enums_should_be_pascalcase.style = pascalcase
260+
261+
dotnet_naming_rule.local_functions_should_be_pascalcase.severity = suggestion
262+
dotnet_naming_rule.local_functions_should_be_pascalcase.symbols = local_functions
263+
dotnet_naming_rule.local_functions_should_be_pascalcase.style = pascalcase
264+
265+
dotnet_naming_rule.non_field_members_should_be_pascalcase.severity = suggestion
266+
dotnet_naming_rule.non_field_members_should_be_pascalcase.symbols = non_field_members
267+
dotnet_naming_rule.non_field_members_should_be_pascalcase.style = pascalcase
268+
269+
# Symbol specifications
270+
271+
dotnet_naming_symbols.interfaces.applicable_kinds = interface
272+
dotnet_naming_symbols.interfaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
273+
dotnet_naming_symbols.interfaces.required_modifiers =
274+
275+
dotnet_naming_symbols.enums.applicable_kinds = enum
276+
dotnet_naming_symbols.enums.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
277+
dotnet_naming_symbols.enums.required_modifiers =
278+
279+
dotnet_naming_symbols.events.applicable_kinds = event
280+
dotnet_naming_symbols.events.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
281+
dotnet_naming_symbols.events.required_modifiers =
282+
283+
dotnet_naming_symbols.methods.applicable_kinds = method
284+
dotnet_naming_symbols.methods.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
285+
dotnet_naming_symbols.methods.required_modifiers =
286+
287+
dotnet_naming_symbols.properties.applicable_kinds = property
288+
dotnet_naming_symbols.properties.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
289+
dotnet_naming_symbols.properties.required_modifiers =
290+
291+
dotnet_naming_symbols.public_fields.applicable_kinds = field
292+
dotnet_naming_symbols.public_fields.applicable_accessibilities = public, internal
293+
dotnet_naming_symbols.public_fields.required_modifiers =
294+
295+
dotnet_naming_symbols.private_fields.applicable_kinds = field
296+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
297+
dotnet_naming_symbols.private_fields.required_modifiers =
298+
299+
dotnet_naming_symbols.private_static_fields.applicable_kinds = field
300+
dotnet_naming_symbols.private_static_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
301+
dotnet_naming_symbols.private_static_fields.required_modifiers = static
302+
303+
dotnet_naming_symbols.types_and_namespaces.applicable_kinds = namespace, class, struct, interface, enum
304+
dotnet_naming_symbols.types_and_namespaces.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
305+
dotnet_naming_symbols.types_and_namespaces.required_modifiers =
306+
307+
dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
308+
dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
309+
dotnet_naming_symbols.non_field_members.required_modifiers =
310+
311+
dotnet_naming_symbols.type_parameters.applicable_kinds = namespace
312+
dotnet_naming_symbols.type_parameters.applicable_accessibilities = *
313+
dotnet_naming_symbols.type_parameters.required_modifiers =
314+
315+
dotnet_naming_symbols.private_constant_fields.applicable_kinds = field
316+
dotnet_naming_symbols.private_constant_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
317+
dotnet_naming_symbols.private_constant_fields.required_modifiers = const
318+
319+
dotnet_naming_symbols.local_variables.applicable_kinds = local
320+
dotnet_naming_symbols.local_variables.applicable_accessibilities = local
321+
dotnet_naming_symbols.local_variables.required_modifiers =
322+
323+
dotnet_naming_symbols.local_constants.applicable_kinds = local
324+
dotnet_naming_symbols.local_constants.applicable_accessibilities = local
325+
dotnet_naming_symbols.local_constants.required_modifiers = const
326+
327+
dotnet_naming_symbols.parameters.applicable_kinds = parameter
328+
dotnet_naming_symbols.parameters.applicable_accessibilities = *
329+
dotnet_naming_symbols.parameters.required_modifiers =
330+
331+
dotnet_naming_symbols.public_constant_fields.applicable_kinds = field
332+
dotnet_naming_symbols.public_constant_fields.applicable_accessibilities = public, internal
333+
dotnet_naming_symbols.public_constant_fields.required_modifiers = const
334+
335+
dotnet_naming_symbols.public_static_readonly_fields.applicable_kinds = field
336+
dotnet_naming_symbols.public_static_readonly_fields.applicable_accessibilities = public, internal
337+
dotnet_naming_symbols.public_static_readonly_fields.required_modifiers = readonly, static
338+
339+
dotnet_naming_symbols.private_static_readonly_fields.applicable_kinds = field
340+
dotnet_naming_symbols.private_static_readonly_fields.applicable_accessibilities = private, protected, protected_internal, private_protected
341+
dotnet_naming_symbols.private_static_readonly_fields.required_modifiers = readonly, static
342+
343+
dotnet_naming_symbols.local_functions.applicable_kinds = local_function
344+
dotnet_naming_symbols.local_functions.applicable_accessibilities = *
345+
dotnet_naming_symbols.local_functions.required_modifiers =
346+
347+
# Naming styles
348+
349+
dotnet_naming_style.pascalcase.required_prefix =
350+
dotnet_naming_style.pascalcase.required_suffix =
351+
dotnet_naming_style.pascalcase.word_separator =
352+
dotnet_naming_style.pascalcase.capitalization = pascal_case
353+
354+
dotnet_naming_style.ipascalcase.required_prefix = I
355+
dotnet_naming_style.ipascalcase.required_suffix =
356+
dotnet_naming_style.ipascalcase.word_separator =
357+
dotnet_naming_style.ipascalcase.capitalization = pascal_case
358+
359+
dotnet_naming_style.tpascalcase.required_prefix = T
360+
dotnet_naming_style.tpascalcase.required_suffix =
361+
dotnet_naming_style.tpascalcase.word_separator =
362+
dotnet_naming_style.tpascalcase.capitalization = pascal_case
363+
364+
dotnet_naming_style._camelcase.required_prefix = _
365+
dotnet_naming_style._camelcase.required_suffix =
366+
dotnet_naming_style._camelcase.word_separator =
367+
dotnet_naming_style._camelcase.capitalization = camel_case
368+
369+
dotnet_naming_style.camelcase.required_prefix =
370+
dotnet_naming_style.camelcase.required_suffix =
371+
dotnet_naming_style.camelcase.word_separator =
372+
dotnet_naming_style.camelcase.capitalization = camel_case
373+
374+
dotnet_naming_style.s_camelcase.required_prefix = s_
375+
dotnet_naming_style.s_camelcase.required_suffix =
376+
dotnet_naming_style.s_camelcase.word_separator =
377+
dotnet_naming_style.s_camelcase.capitalization = camel_case
378+

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "Debug TUnit Test",
3+
"type": "coreclr",
4+
"request": "launch",
5+
"preLaunchTask": "build",
6+
"program": "dotnet",
7+
"args": [
8+
"exec",
9+
"${workspaceFolder}/tests/BinanceBot.Market.Tests/bin/Debug/net9.0/BinanceBot.Market.Tests.dll",
10+
"--treenode-filter",
11+
"${command:csharp-test-filter.getFilter}"
12+
],
13+
"cwd": "${workspaceFolder}",
14+
"console": "integratedTerminal",
15+
"stopAtEntry": false
16+
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)