|
| 1 | +# Rules in this file were initially inferred by Visual Studio IntelliCode from the C:\Users\bushc\Source\Repos\MaterialDesignInXamlToolkit codebase based on best match to current usage at 8/14/2018 |
| 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 | +#Core editorconfig formatting - indentation |
| 7 | + |
| 8 | +#use soft tabs (spaces) for indentation |
| 9 | +indent_style = space |
| 10 | + |
| 11 | +#Formatting - indentation options |
| 12 | + |
| 13 | +#indent switch case contents. |
| 14 | +csharp_indent_case_contents = true |
| 15 | +#indent switch labels |
| 16 | +csharp_indent_switch_labels = true |
| 17 | + |
| 18 | +#Formatting - new line options |
| 19 | + |
| 20 | +#place catch statements on a new line |
| 21 | +csharp_new_line_before_catch = true |
| 22 | +#place else statements on a new line |
| 23 | +csharp_new_line_before_else = true |
| 24 | +#require braces to be on a new line for methods, accessors, anonymous_methods, types, properties, control_blocks, and lambdas (also known as "Allman" style) |
| 25 | +csharp_new_line_before_open_brace = methods, accessors, anonymous_methods, types, properties, control_blocks, lambdas |
| 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 a space before the colon for bases or interfaces in a type declaration |
| 35 | +csharp_space_after_colon_in_inheritance_clause = true |
| 36 | +#require a space after a keyword in a control flow statement such as a for loop |
| 37 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 38 | +#require a space before the colon for bases or interfaces in a type declaration |
| 39 | +csharp_space_before_colon_in_inheritance_clause = true |
| 40 | +#remove space within empty argument list parentheses |
| 41 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 42 | +#remove space between method call name and opening parenthesis |
| 43 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 44 | +#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call |
| 45 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 46 | +#remove space within empty parameter list parentheses for a method declaration |
| 47 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 48 | +#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list. |
| 49 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 50 | + |
| 51 | +#Formatting - wrapping options |
| 52 | + |
| 53 | +#leave code block on single line |
| 54 | +csharp_preserve_single_line_blocks = true |
| 55 | +#leave statements and member declarations on the same line |
| 56 | +csharp_preserve_single_line_statements = true |
| 57 | + |
| 58 | +#Style - expression bodied member options |
| 59 | + |
| 60 | +#prefer block bodies for accessors |
| 61 | +csharp_style_expression_bodied_accessors = false:suggestion |
| 62 | +#prefer block bodies for constructors |
| 63 | +csharp_style_expression_bodied_constructors = false:suggestion |
| 64 | +#prefer block bodies for methods |
| 65 | +csharp_style_expression_bodied_methods = false:suggestion |
| 66 | +#prefer block bodies for properties |
| 67 | +csharp_style_expression_bodied_properties = false:suggestion |
| 68 | + |
| 69 | +#Style - expression level options |
| 70 | + |
| 71 | +#prefer out variables to be declared before the method call |
| 72 | +csharp_style_inlined_variable_declaration = false:suggestion |
| 73 | +#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them |
| 74 | +dotnet_style_predefined_type_for_member_access = true:suggestion |
| 75 | + |
| 76 | +#Style - implicit and explicit types |
| 77 | + |
| 78 | +#prefer var is used to declare variables with built-in system types such as int |
| 79 | +csharp_style_var_for_built_in_types = true:suggestion |
| 80 | +#prefer var when the type is already mentioned on the right-hand side of a declaration expression |
| 81 | +csharp_style_var_when_type_is_apparent = true:suggestion |
| 82 | + |
| 83 | +#Style - language keyword and framework type options |
| 84 | + |
| 85 | +#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 |
| 86 | +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
| 87 | + |
| 88 | +#Style - qualification options |
| 89 | + |
| 90 | +#prefer events not to be prefaced with this. or Me. in Visual Basic |
| 91 | +dotnet_style_qualification_for_event = false:suggestion |
| 92 | +#prefer fields not to be prefaced with this. or Me. in Visual Basic |
| 93 | +dotnet_style_qualification_for_field = false:suggestion |
| 94 | +#prefer methods not to be prefaced with this. or Me. in Visual Basic |
| 95 | +dotnet_style_qualification_for_method = false:suggestion |
| 96 | +#prefer properties not to be prefaced with this. or Me. in Visual Basic |
| 97 | +dotnet_style_qualification_for_property = false:suggestion |
0 commit comments