You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.editorconfig 4.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # EditorConfig is awesome: http://EditorConfig.org
  2. root = true
  3. [*]
  4. charset = utf-8
  5. end_of_line = lf
  6. insert_final_newline = true
  7. indent_size = 4
  8. indent_style = space
  9. trim_trailing_whitespace = true
  10. [*.{csproj,json,md,nuspec,yml}]
  11. indent_size = 2
  12. indent_style = space
  13. [*.{sln,xml}]
  14. indent_style = tab
  15. [*.cs]
  16. dotnet_style_qualification_for_field = false:suggestion
  17. dotnet_style_qualification_for_property = false:suggestion
  18. dotnet_style_qualification_for_method = false:suggestion
  19. dotnet_style_qualification_for_event = false:suggestion
  20. dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
  21. dotnet_style_predefined_type_for_member_access = true:suggestion
  22. dotnet_style_object_initializer = true:suggestion
  23. dotnet_style_collection_initializer = true:suggestion
  24. dotnet_style_explicit_tuple_names = true:suggestion
  25. dotnet_style_coalesce_expression = true:suggestion
  26. dotnet_style_null_propagation = true:suggestion
  27. csharp_style_var_for_built_in_types = true:suggestion
  28. csharp_style_var_when_type_is_apparent = true:suggestion
  29. csharp_style_var_elsewhere = true:suggestion
  30. csharp_style_expression_bodied_methods = true:none
  31. csharp_style_expression_bodied_operators = true:none
  32. csharp_style_expression_bodied_properties = true:none
  33. csharp_style_expression_bodied_indexers = true:none
  34. csharp_style_expression_bodied_accessors = true:none
  35. csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
  36. csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
  37. csharp_style_inlined_variable_declaration = true:suggestion
  38. csharp_prefer_simple_default_expression = false:none
  39. csharp_style_throw_expression = true:none
  40. csharp_style_conditional_delegate_call = true:none
  41. csharp_prefer_braces = false:none
  42. dotnet_sort_system_directives_first = false
  43. csharp_new_line_before_open_brace = all
  44. csharp_new_line_before_else = true
  45. csharp_new_line_before_catch = true
  46. csharp_new_line_before_finally = true
  47. csharp_new_line_before_members_in_object_initializers = true
  48. csharp_new_line_before_members_in_anonymous_types = true
  49. csharp_new_line_within_query_expression_clauses = true
  50. csharp_indent_case_contents = true
  51. csharp_indent_switch_labels = true
  52. csharp_indent_labels = flush_left
  53. csharp_space_after_cast = false
  54. csharp_space_after_keywords_in_control_flow_statements = true
  55. csharp_space_between_method_declaration_parameter_list_parentheses = false
  56. csharp_space_between_method_call_parameter_list_parentheses = false
  57. csharp_preserve_single_line_statements = false
  58. csharp_preserve_single_line_blocks = true
  59. dotnet_naming_rule.all_of_const_fields_are_pascal_case.symbols = const_fields
  60. dotnet_naming_rule.all_of_const_fields_are_pascal_case.style = pascal_case
  61. dotnet_naming_rule.all_of_const_fields_are_pascal_case.severity = suggestion
  62. dotnet_naming_rule.all_of_local_fields_without_const_are_camel_case.symbols = local_fields
  63. dotnet_naming_rule.all_of_local_fields_without_const_are_camel_case.style = starts_with_low_line_camel_case
  64. dotnet_naming_rule.all_of_local_fields_without_const_are_camel_case.severity = suggestion
  65. dotnet_naming_rule.all_of_interfaces_starts_with_low_line_camel_case.symbols = interfaces
  66. dotnet_naming_rule.all_of_interfaces_starts_with_low_line_camel_case.style = starts_with_i_pascal_case
  67. dotnet_naming_rule.all_of_interfaces_starts_with_low_line_camel_case.severity = suggestion
  68. dotnet_naming_rule.default_is_pascal_case.symbols = without_interfaces_and_fields
  69. dotnet_naming_rule.default_is_pascal_case.style = pascal_case
  70. dotnet_naming_rule.default_is_pascal_case.severity = suggestion
  71. dotnet_naming_symbols.const_fields.applicable_kinds = field
  72. dotnet_naming_symbols.const_fields.applicable_accessibilities = *
  73. dotnet_naming_symbols.const_fields.required_modifiers = const
  74. dotnet_naming_symbols.interfaces.applicable_kinds = interface
  75. dotnet_naming_symbols.interfaces.applicable_accessibilities = *
  76. dotnet_naming_symbols.local_fields.applicable_kinds = field
  77. dotnet_naming_symbols.local_fields.applicable_accessibilities = internal, private, protected, protected_internal
  78. dotnet_naming_symbols.local_fields.required_modifiers = abstract, must_inherit, readonly, static, shared
  79. dotnet_naming_symbols.without_interfaces_and_fields.applicable_kinds = class, struct, enum, property, method, event, namespace, delegate, type_parameter
  80. dotnet_naming_symbols.without_interfaces_and_fields.applicable_accessibilities = *
  81. dotnet_naming_style.pascal_case.capitalization = pascal_case
  82. dotnet_naming_style.starts_with_i_pascal_case.required_prefix = I
  83. dotnet_naming_style.starts_with_i_pascal_case.capitalization = pascal_case
  84. dotnet_naming_style.starts_with_low_line_camel_case.required_prefix = _
  85. dotnet_naming_style.starts_with_low_line_camel_case.capitalization = camel_case