@@ -23,63 +23,162 @@ vsspell_exclusion_expressions_9f07c577adcd4fd7a93a42a503828225 = [a-z]{2}-([A-Z]
2323vsspell_spell_check_as_you_type = false
2424vsspell_include_in_project_spell_check = false
2525
26- # XML files of various types
2726[* .{aml,asax,ascx,asmx,asp,aspx,axml,config,content,cshtml,csproj,database,datasource,dbml,disco,discomap,dtsx,edmx,exclude,fxcop,htm,html,items,layout,maml,manifest,master,msha,myapp,nunit,nuspec,proj,projitems,props,publishproj,pubxml,rdl,rdlc,resx,ruleset,settings,shfbproj,shproj,sitemap,snippets,soap,svc,svcinfo,svcmap,targets,tasks,tokens,vbhtml,vbproj,vcxproj,vcxproj.filters,vsct,vsixmanifest,vstemplate,webinfo,wsdl,xaml,xamlcfg,xml,xsd,xsl,xslt,xsx} ]
27+ # XML files of various types
2828indent_style = tab
29+ indent_size = 2
30+ tab_width = 2
2931
30- # C#/VB settings
3132[* .{cs,vb} ]
33+ # C#/VB settings
3234indent_size = 4
35+ tab_width = 4
3336
3437dotnet_sort_system_directives_first = true
3538
39+ # Naming rules
40+ dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion
41+ dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
42+ dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
43+
44+ dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion
45+ dotnet_naming_rule.types_should_be_pascal_case.symbols = types
46+ dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
47+
48+ dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion
49+ dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
50+ dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
51+
52+ # Symbol specifications
53+ dotnet_naming_symbols.interface.applicable_kinds = interface
54+ dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
55+ dotnet_naming_symbols.interface.required_modifiers =
56+
57+ dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
58+ dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
59+ dotnet_naming_symbols.types.required_modifiers =
60+
61+ dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
62+ dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
63+ dotnet_naming_symbols.non_field_members.required_modifiers =
64+
65+ # Naming styles
66+ dotnet_naming_style.begins_with_i.required_prefix = I
67+ dotnet_naming_style.begins_with_i.required_suffix =
68+ dotnet_naming_style.begins_with_i.word_separator =
69+ dotnet_naming_style.begins_with_i.capitalization = pascal_case
70+
71+ dotnet_naming_style.pascal_case.required_prefix =
72+ dotnet_naming_style.pascal_case.required_suffix =
73+ dotnet_naming_style.pascal_case.word_separator =
74+ dotnet_naming_style.pascal_case.capitalization = pascal_case
75+
76+ dotnet_naming_style.pascal_case.required_prefix =
77+ dotnet_naming_style.pascal_case.required_suffix =
78+ dotnet_naming_style.pascal_case.word_separator =
79+ dotnet_naming_style.pascal_case.capitalization = pascal_case
80+
81+ # Code style settings
82+ dotnet_style_predefined_type_for_locals_parameters_members = true :none
83+ dotnet_style_predefined_type_for_member_access = false :error
84+ dotnet_style_coalesce_expression = true :suggestion
85+ dotnet_style_collection_initializer = true :suggestion
86+ dotnet_style_explicit_tuple_names = true :error
87+ dotnet_style_null_propagation = true :suggestion
88+ dotnet_style_object_initializer = true :suggestion
89+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
90+ dotnet_style_prefer_auto_properties = true :silent
91+ dotnet_style_prefer_simplified_boolean_expressions = true :suggestion
92+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
93+ dotnet_style_prefer_conditional_expression_over_return = true :silent
94+ dotnet_style_prefer_inferred_tuple_names = true :suggestion
95+ dotnet_style_prefer_inferred_anonymous_type_member_names = true :suggestion
96+ dotnet_style_prefer_compound_assignment = true :suggestion
97+ dotnet_style_prefer_simplified_interpolation = true :suggestion
98+ dotnet_style_namespace_match_folder = true :suggestion
99+ dotnet_style_operator_placement_when_wrapping = beginning_of_line
100+
36101# "This." and "Me." qualification. Use is preferred where true but the lightbulbs tend to show up in places
37102# they aren't wanted (within static methods and nameof parameters etc.) so no suggestions are enabled.
38- dotnet_style_qualification_for_event = true : none
39- dotnet_style_qualification_for_field = false : none
40- dotnet_style_qualification_for_method = true : none
41- dotnet_style_qualification_for_property = true : none
42-
43- # Language keywords vs framework type names
44- dotnet_style_predefined_type_for_locals_parameters_members = true : none
45- dotnet_style_predefined_type_for_member_access = false : error
46-
47- # Modern language feature settings
48- dotnet_style_coalesce_expression = true : suggestion
49- dotnet_style_collection_initializer = true : suggestion
50- dotnet_style_explicit_tuple_names = true : error
51- dotnet_style_null_propagation = true : suggestion
52- dotnet_style_object_initializer = true : suggestion
103+ dotnet_style_qualification_for_event = true :none
104+ dotnet_style_qualification_for_field = false :none
105+ dotnet_style_qualification_for_method = true :none
106+ dotnet_style_qualification_for_property = true :none
53107
54- # CSharp code style settings
55- [* .cs ]
56- csharp_style_var_elsewhere = false : none
57- csharp_style_var_for_built_in_types = false : none
58- csharp_style_var_when_type_is_apparent = false : none
59-
60- csharp_style_expression_bodied_accessors = true : suggestion
61- csharp_style_expression_bodied_constructors = false : none
62- csharp_style_expression_bodied_indexers = true : suggestion
63- csharp_style_expression_bodied_methods = false : none
64- csharp_style_expression_bodied_operators = false : none
65- csharp_style_expression_bodied_properties = true : suggestion
66-
67- csharp_style_conditional_delegate_call = true : suggestion
68- csharp_style_deconstructed_variable_declaration = false : none
69- csharp_style_inlined_variable_declaration = true : suggestion
70- csharp_style_pattern_local_over_anonymous_function = true : suggestion
71- csharp_style_pattern_matching_over_as_with_null_check = true : suggestion
72- csharp_style_pattern_matching_over_is_with_cast_check = true : suggestion
73- csharp_style_throw_expression = true : suggestion
74-
75- csharp_prefer_simple_default_expression = true : suggestion
108+ # Code analyzer settings
109+ # CA1303: Do not pass literals as localized parameters
110+ dotnet_diagnostic.CA1303.severity = none
111+
112+ # IDE0010: Add missing cases
113+ dotnet_diagnostic.IDE0010.severity = none
114+
115+ # IDE0032: Use auto property
116+ dotnet_diagnostic.IDE0032.severity = none
117+
118+ # IDE0045: Convert to conditional expression
119+ dotnet_diagnostic.IDE0045.severity = none
120+
121+ # IDE0046: Convert to conditional expression
122+ dotnet_diagnostic.IDE0046.severity = none
123+
124+ # IDE0047: Remove unnecessary parentheses
125+ dotnet_diagnostic.IDE0047.severity = none
76126
127+ # IDE0055: Fix formatting
128+ dotnet_diagnostic.IDE0055.severity = none
129+
130+ # IDE0058: Expression value is never used
131+ dotnet_diagnostic.IDE0058.severity = none
132+
133+ # IDE1006: Naming Styles
134+ dotnet_diagnostic.IDE1006.severity = none
135+
136+ [* .cs ]
137+ # CSharp code style settings
138+ csharp_style_var_elsewhere = false :none
139+ csharp_style_var_for_built_in_types = false :none
140+ csharp_style_var_when_type_is_apparent = false :none
141+
142+ csharp_style_expression_bodied_accessors = true :suggestion
143+ csharp_style_expression_bodied_constructors = false :none
144+ csharp_style_expression_bodied_indexers = true :suggestion
145+ csharp_style_expression_bodied_methods = false :none
146+ csharp_style_expression_bodied_operators = false :none
147+ csharp_style_expression_bodied_properties = true :suggestion
148+
149+ csharp_style_conditional_delegate_call = true :suggestion
150+ csharp_style_deconstructed_variable_declaration = false :none
151+ csharp_style_inlined_variable_declaration = true :suggestion
152+ csharp_style_pattern_local_over_anonymous_function = true :suggestion
153+ csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
154+ csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
155+ csharp_style_throw_expression = true :suggestion
156+ csharp_style_namespace_declarations = block_scoped:silent
157+ csharp_style_prefer_method_group_conversion = true :silent
158+ csharp_style_prefer_top_level_statements = true :silent
159+ csharp_style_expression_bodied_lambdas = true :silent
160+ csharp_style_expression_bodied_local_functions = false :silent
161+ csharp_style_prefer_null_check_over_type_check = true :suggestion
162+ csharp_style_prefer_local_over_anonymous_function = true :suggestion
163+ csharp_style_prefer_index_operator = true :suggestion
164+ csharp_style_prefer_range_operator = true :suggestion
165+ csharp_style_implicit_object_creation_when_type_is_apparent = true :suggestion
166+ csharp_style_prefer_tuple_swap = true :suggestion
167+ csharp_style_prefer_utf8_string_literals = true :suggestion
168+ csharp_style_unused_value_assignment_preference = discard_variable:suggestion
169+ csharp_style_unused_value_expression_statement_preference = discard_variable:silent
170+
171+ csharp_prefer_braces = when_multiline:none
172+ csharp_prefer_simple_default_expression = true :suggestion
173+ csharp_prefer_simple_using_statement = true :suggestion
77174csharp_preserve_single_line_blocks = true
175+ csharp_using_directive_placement = outside_namespace:silent
78176
79177# Indentation options
80178csharp_indent_block_contents = true
81179csharp_indent_braces = false
82180csharp_indent_case_contents = true
181+ csharp_indent_labels = no_change
83182
84183# New line options
85184csharp_new_line_before_catch = true
@@ -109,31 +208,3 @@ csharp_space_between_method_call_parameter_list_parentheses = false
109208csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
110209csharp_space_between_method_declaration_name_and_open_parenthesis = false
111210csharp_space_between_method_declaration_parameter_list_parentheses = false
112-
113- # CA1303: Do not pass literals as localized parameters
114- dotnet_diagnostic.CA1303.severity = none
115-
116- # IDE0010: Add missing cases
117- dotnet_diagnostic.IDE0010.severity = none
118-
119- # IDE0032: Use auto property
120- dotnet_diagnostic.IDE0032.severity = none
121-
122- # IDE0045: Convert to conditional expression
123- dotnet_diagnostic.IDE0045.severity = none
124-
125- # IDE0046: Convert to conditional expression
126- dotnet_diagnostic.IDE0046.severity = none
127-
128- # IDE0047: Remove unnecessary parentheses
129- dotnet_diagnostic.IDE0047.severity = none
130-
131- # IDE0055: Fix formatting
132- dotnet_diagnostic.IDE0055.severity = none
133-
134- # IDE0058: Expression value is never used
135- dotnet_diagnostic.IDE0058.severity = none
136-
137- # IDE1006: Naming Styles
138- dotnet_diagnostic.IDE1006.severity = none
139-
0 commit comments