|
| 1 | +# top-most EditorConfig file |
| 2 | +root = true |
| 3 | + |
| 4 | +[*] |
| 5 | +end_of_line = crlf |
| 6 | +dotnet_style_qualification_for_field = false:silent |
| 7 | +dotnet_style_qualification_for_property = false:silent |
| 8 | +dotnet_style_qualification_for_method = false:silent |
| 9 | +dotnet_style_qualification_for_event = false:silent |
| 10 | + |
| 11 | +[*.{cs,xaml}] |
| 12 | +indent_style = space |
| 13 | +indent_size = 4 |
| 14 | +trim_trailing_whitespace = true |
| 15 | +insert_final_newline = true |
| 16 | + |
| 17 | +[*.cs] |
| 18 | +#### 命名样式 #### |
| 19 | + |
| 20 | +# 命名规则 |
| 21 | + |
| 22 | +dotnet_naming_rule.interface_should_be_begins_with_i.severity = suggestion |
| 23 | +dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface |
| 24 | +dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i |
| 25 | + |
| 26 | +dotnet_naming_rule.types_should_be_pascal_case.severity = suggestion |
| 27 | +dotnet_naming_rule.types_should_be_pascal_case.symbols = types |
| 28 | +dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case |
| 29 | + |
| 30 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = suggestion |
| 31 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members |
| 32 | +dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case |
| 33 | + |
| 34 | +# 符号规范 |
| 35 | + |
| 36 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 37 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 38 | +dotnet_naming_symbols.interface.required_modifiers = |
| 39 | + |
| 40 | +dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum |
| 41 | +dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 42 | +dotnet_naming_symbols.types.required_modifiers = |
| 43 | + |
| 44 | +dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method |
| 45 | +dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected |
| 46 | +dotnet_naming_symbols.non_field_members.required_modifiers = |
| 47 | + |
| 48 | +# 命名样式 |
| 49 | + |
| 50 | +dotnet_naming_style.begins_with_i.required_prefix = I |
| 51 | +dotnet_naming_style.begins_with_i.required_suffix = |
| 52 | +dotnet_naming_style.begins_with_i.word_separator = |
| 53 | +dotnet_naming_style.begins_with_i.capitalization = pascal_case |
| 54 | + |
| 55 | +dotnet_naming_style.pascal_case.required_prefix = |
| 56 | +dotnet_naming_style.pascal_case.required_suffix = |
| 57 | +dotnet_naming_style.pascal_case.word_separator = |
| 58 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 59 | + |
| 60 | +dotnet_naming_style.pascal_case.required_prefix = |
| 61 | +dotnet_naming_style.pascal_case.required_suffix = |
| 62 | +dotnet_naming_style.pascal_case.word_separator = |
| 63 | +dotnet_naming_style.pascal_case.capitalization = pascal_case |
| 64 | +csharp_using_directive_placement = outside_namespace:silent |
| 65 | +csharp_style_expression_bodied_methods = false:silent |
| 66 | +csharp_style_expression_bodied_constructors = false:silent |
| 67 | +csharp_style_expression_bodied_operators = false:silent |
| 68 | +csharp_style_expression_bodied_properties = true:silent |
| 69 | +csharp_style_expression_bodied_indexers = true:silent |
| 70 | +csharp_style_expression_bodied_accessors = true:silent |
| 71 | +csharp_style_expression_bodied_lambdas = true:silent |
| 72 | +csharp_style_expression_bodied_local_functions = false:silent |
| 73 | +csharp_style_conditional_delegate_call = true:suggestion |
| 74 | +csharp_style_prefer_parameter_null_checking = true:suggestion |
| 75 | +csharp_space_around_binary_operators = before_and_after |
| 76 | +csharp_style_var_for_built_in_types = false:silent |
| 77 | +csharp_style_var_when_type_is_apparent = false:silent |
| 78 | + |
| 79 | +[*.vb] |
| 80 | +#### 命名样式 #### |
| 81 | + |
| 82 | +# 命名规则 |
| 83 | + |
| 84 | +dotnet_naming_rule.interface_should_be_以_i_开始.severity = suggestion |
| 85 | +dotnet_naming_rule.interface_should_be_以_i_开始.symbols = interface |
| 86 | +dotnet_naming_rule.interface_should_be_以_i_开始.style = 以_i_开始 |
| 87 | + |
| 88 | +dotnet_naming_rule.类型_should_be_帕斯卡拼写法.severity = suggestion |
| 89 | +dotnet_naming_rule.类型_should_be_帕斯卡拼写法.symbols = 类型 |
| 90 | +dotnet_naming_rule.类型_should_be_帕斯卡拼写法.style = 帕斯卡拼写法 |
| 91 | + |
| 92 | +dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.severity = suggestion |
| 93 | +dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.symbols = 非字段成员 |
| 94 | +dotnet_naming_rule.非字段成员_should_be_帕斯卡拼写法.style = 帕斯卡拼写法 |
| 95 | + |
| 96 | +# 符号规范 |
| 97 | + |
| 98 | +dotnet_naming_symbols.interface.applicable_kinds = interface |
| 99 | +dotnet_naming_symbols.interface.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 100 | +dotnet_naming_symbols.interface.required_modifiers = |
| 101 | + |
| 102 | +dotnet_naming_symbols.类型.applicable_kinds = class, struct, interface, enum |
| 103 | +dotnet_naming_symbols.类型.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 104 | +dotnet_naming_symbols.类型.required_modifiers = |
| 105 | + |
| 106 | +dotnet_naming_symbols.非字段成员.applicable_kinds = property, event, method |
| 107 | +dotnet_naming_symbols.非字段成员.applicable_accessibilities = public, friend, private, protected, protected_friend, private_protected |
| 108 | +dotnet_naming_symbols.非字段成员.required_modifiers = |
| 109 | + |
| 110 | +# 命名样式 |
| 111 | + |
| 112 | +dotnet_naming_style.以_i_开始.required_prefix = I |
| 113 | +dotnet_naming_style.以_i_开始.required_suffix = |
| 114 | +dotnet_naming_style.以_i_开始.word_separator = |
| 115 | +dotnet_naming_style.以_i_开始.capitalization = pascal_case |
| 116 | + |
| 117 | +dotnet_naming_style.帕斯卡拼写法.required_prefix = |
| 118 | +dotnet_naming_style.帕斯卡拼写法.required_suffix = |
| 119 | +dotnet_naming_style.帕斯卡拼写法.word_separator = |
| 120 | +dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case |
| 121 | + |
| 122 | +dotnet_naming_style.帕斯卡拼写法.required_prefix = |
| 123 | +dotnet_naming_style.帕斯卡拼写法.required_suffix = |
| 124 | +dotnet_naming_style.帕斯卡拼写法.word_separator = |
| 125 | +dotnet_naming_style.帕斯卡拼写法.capitalization = pascal_case |
0 commit comments