|
| 1 | +# Rules in this file were initially inferred by Visual Studio IntelliCode from the D:\Code\TableStorage.Abstractions.TableEntityConverters\src codebase based on best match to current usage at 3/23/2020 |
| 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 hard tabs for indentation |
| 9 | +indent_style = tab |
| 10 | + |
| 11 | +#Formatting - new line options |
| 12 | + |
| 13 | +#require braces to be on a new line for object_collection_array_initializers, control_blocks, methods, and types (also known as "Allman" style) |
| 14 | +csharp_new_line_before_open_brace = object_collection_array_initializers, control_blocks, methods, types |
| 15 | + |
| 16 | +#Formatting - organize using options |
| 17 | + |
| 18 | +#sort System.* using directives alphabetically, and place them before other usings |
| 19 | +dotnet_sort_system_directives_first = true |
| 20 | + |
| 21 | +#Formatting - spacing options |
| 22 | + |
| 23 | +#require NO space between a cast and the value |
| 24 | +csharp_space_after_cast = false |
| 25 | +#require a space after a keyword in a control flow statement such as a for loop |
| 26 | +csharp_space_after_keywords_in_control_flow_statements = true |
| 27 | +#remove space within empty argument list parentheses |
| 28 | +csharp_space_between_method_call_empty_parameter_list_parentheses = false |
| 29 | +#remove space between method call name and opening parenthesis |
| 30 | +csharp_space_between_method_call_name_and_opening_parenthesis = false |
| 31 | +#do not place space characters after the opening parenthesis and before the closing parenthesis of a method call |
| 32 | +csharp_space_between_method_call_parameter_list_parentheses = false |
| 33 | +#remove space within empty parameter list parentheses for a method declaration |
| 34 | +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false |
| 35 | +#place a space character after the opening parenthesis and before the closing parenthesis of a method declaration parameter list. |
| 36 | +csharp_space_between_method_declaration_parameter_list_parentheses = false |
| 37 | + |
| 38 | +#Formatting - wrapping options |
| 39 | + |
| 40 | +#leave code block on single line |
| 41 | +csharp_preserve_single_line_blocks = true |
| 42 | + |
| 43 | +#Style - expression bodied member options |
| 44 | + |
| 45 | +#prefer block bodies for methods |
| 46 | +csharp_style_expression_bodied_methods = false:suggestion |
| 47 | + |
| 48 | +#Style - expression level options |
| 49 | + |
| 50 | +#prefer the language keyword for member access expressions, instead of the type name, for types that have a keyword to represent them |
| 51 | +dotnet_style_predefined_type_for_member_access = true:suggestion |
| 52 | + |
| 53 | +#Style - implicit and explicit types |
| 54 | + |
| 55 | +#prefer var is used to declare variables with built-in system types such as int |
| 56 | +csharp_style_var_for_built_in_types = true:suggestion |
| 57 | +#prefer var when the type is already mentioned on the right-hand side of a declaration expression |
| 58 | +csharp_style_var_when_type_is_apparent = true:suggestion |
| 59 | + |
| 60 | +#Style - language keyword and framework type options |
| 61 | + |
| 62 | +#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 |
| 63 | +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion |
0 commit comments