1+ # Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Users\matv8981.AVWORLD\source\fNbt codebase based on best match to current usage at 8/10/2021
2+ # You can modify the rules from these initially generated values to suit your own policies
3+ # You can learn more about editorconfig here: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
4+ [* .cs ]
5+
6+
7+ # Core editorconfig formatting - indentation
8+
9+ # use soft tabs (spaces) for indentation
10+ indent_style = space
11+
12+ # Formatting - indentation options
13+
14+ # indent switch case contents.
15+ csharp_indent_case_contents = true
16+ # indent switch labels
17+ csharp_indent_switch_labels = true
18+
19+ # Formatting - new line options
20+ csharp_new_line_before_open_brace = false
21+ csharp_new_line_before_else = false
22+ csharp_new_line_before_members_in_object_initializers = false
23+ csharp_new_line_before_members_in_anonymous_types = false
24+ csharp_new_line_before_catch = false
25+ csharp_new_line_before_finally = false
26+
27+ # Formatting - organize using options
28+
29+ # sort System.* using directives alphabetically, and place them before other usings
30+ dotnet_sort_system_directives_first = true
31+
32+ # Formatting - spacing options
33+
34+ # require NO space between a cast and the value
35+ csharp_space_after_cast = false
36+ # require a space before the colon for bases or interfaces in a type declaration
37+ csharp_space_after_colon_in_inheritance_clause = true
38+ # require a space after a keyword in a control flow statement such as a for loop
39+ csharp_space_after_keywords_in_control_flow_statements = true
40+ # require a space before the colon for bases or interfaces in a type declaration
41+ csharp_space_before_colon_in_inheritance_clause = true
42+ # remove space within empty argument list parentheses
43+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
44+ # remove space between method call name and opening parenthesis
45+ csharp_space_between_method_call_name_and_opening_parenthesis = false
46+ # do not place space characters after the opening parenthesis and before the closing parenthesis of a method call
47+ csharp_space_between_method_call_parameter_list_parentheses = false
48+ # remove space within empty parameter list parentheses for a method declaration
49+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
50+ # place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list.
51+ csharp_space_between_method_declaration_parameter_list_parentheses = false
52+
53+ # Formatting - wrapping options
54+
55+ # leave code block on separate lines
56+ csharp_preserve_single_line_blocks = true
57+ # leave statements and member declarations on the same line
58+ csharp_preserve_single_line_statements = true
59+
60+ # Style - Code block preferences
61+
62+ # prefer curly braces even for one line of code
63+ csharp_prefer_braces = true :suggestion
64+
65+ # Style - expression bodied member options
66+
67+ # prefer block bodies for accessors
68+ csharp_style_expression_bodied_accessors = false :suggestion
69+ # prefer block bodies for constructors
70+ csharp_style_expression_bodied_constructors = false :suggestion
71+ # prefer block bodies for indexers
72+ csharp_style_expression_bodied_indexers = false :suggestion
73+ # prefer block bodies for methods
74+ csharp_style_expression_bodied_methods = false :suggestion
75+ # prefer block bodies for properties
76+ csharp_style_expression_bodied_properties = false :suggestion
77+
78+ # Style - expression level options
79+
80+ # prefer out variables to be declared before the method call
81+ csharp_style_inlined_variable_declaration = false :suggestion
82+ # prefer the type name for member access expressions, instead of the language keyword
83+ dotnet_style_predefined_type_for_member_access = false :suggestion
84+
85+ # Style - Expression-level preferences
86+
87+ # prefer objects to be initialized using object initializers when possible
88+ dotnet_style_object_initializer = true :suggestion
89+
90+ # Style - implicit and explicit types
91+
92+ # prefer explicit type over var in all cases, unless overridden by another code style rule
93+ csharp_style_var_elsewhere = false :suggestion
94+ # prefer explicit type over var to declare variables with built-in system types such as int
95+ csharp_style_var_for_built_in_types = false :suggestion
96+ # prefer var when the type is already mentioned on the right-hand side of a declaration expression
97+ csharp_style_var_when_type_is_apparent =false :suggestion
98+
99+ # Style - language keyword and framework type options
100+
101+ # prefer the language keyword for local variables, method parameters, and class members, instead of the type name, for types that have a keyword to represent them
102+ dotnet_style_predefined_type_for_locals_parameters_members = true :suggestion
103+
104+ # Style - modifier options
105+
106+ # prefer accessibility modifiers to be declared except for public interface members. This will currently not differ from always and will act as future proofing for if C# adds default interface methods.
107+ dotnet_style_require_accessibility_modifiers = for_non_interface_members:suggestion
108+
109+ # Style - Modifier preferences
110+
111+ # when this rule is set to a list of modifiers, prefer the specified ordering.
112+ csharp_preferred_modifier_order = public,internal,private,override,static,readonly,sealed,abstract,new,virtual,unsafe:suggestion
113+
114+ # Style - Pattern matching
115+
116+ # prefer is expression with type casts instead of pattern matching
117+ csharp_style_pattern_matching_over_as_with_null_check = false :suggestion
118+
119+ # Style - qualification options
120+
121+ # prefer fields not to be prefaced with this. or Me. in Visual Basic
122+ dotnet_style_qualification_for_field = false :suggestion
123+ # prefer methods not to be prefaced with this. or Me. in Visual Basic
124+ dotnet_style_qualification_for_method = false :suggestion
125+ # prefer properties not to be prefaced with this. or Me. in Visual Basic
126+ dotnet_style_qualification_for_property = false :suggestion
127+
128+ [* .{cs,vb} ]
129+ dotnet_style_predefined_type_for_locals_parameters_members =true :warning
0 commit comments