# EditorConfig is awesome:http://EditorConfig.org # top-most EditorConfig file root = true # All Files # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers [*] # Don't use tabs for indentation. indent_style = space # (Please don't specify an indent_size here; that has too many unintended consequences.) # Code files # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers [*.{cs,csx,vb,vbx}] charset = utf-8-bom end_of_line = crlf indent_style = space indent_size = 4 insert_final_newline = false trim_trailing_whitespace = true # Solution Files [*.sln] indent_style = tab # XML Project Files [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] indent_size = 2 # Configuration Files [*.{json,xml,yml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}] indent_size = 4 # Markdown Files [*.md] trim_trailing_whitespace = false # Web Files [*.{htm,html,js,ts,css,scss,less}] indent_size = 4 insert_final_newline = true # Bash Files [*.sh] end_of_line = lf # Dotnet Code Style Settings # See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers [*.{cs,csx,cake,vb}] dotnet_sort_system_directives_first = true dotnet_style_coalesce_expression = true:warning dotnet_style_collection_initializer = true:warning dotnet_style_explicit_tuple_names = true:warning dotnet_style_null_propagation = true:warning dotnet_style_object_initializer = true:warning dotnet_style_predefined_type_for_locals_parameters_members = true:warning dotnet_style_predefined_type_for_member_access = true:warning dotnet_style_qualification_for_event = false:suggestion dotnet_style_qualification_for_field = false:suggestion dotnet_style_qualification_for_method = false:suggestion dotnet_style_qualification_for_property = false:suggestion # Naming Symbols # constant_fields - Define constant fields dotnet_naming_symbols.constant_fields.applicable_kinds = field dotnet_naming_symbols.constant_fields.required_modifiers = const # non_private_readonly_fields - Define public, internal and protected readonly fields dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, internal, protected dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly # static_readonly_fields - Define static and readonly fields dotnet_naming_symbols.static_readonly_fields.applicable_kinds = field dotnet_naming_symbols.static_readonly_fields.required_modifiers = static, readonly # private_readonly_fields - Define private readonly fields dotnet_naming_symbols.private_readonly_fields.applicable_accessibilities = private dotnet_naming_symbols.private_readonly_fields.applicable_kinds = field dotnet_naming_symbols.private_readonly_fields.required_modifiers = readonly # public_internal_fields - Define public and internal fields dotnet_naming_symbols.public_internal_fields.applicable_accessibilities = public, internal dotnet_naming_symbols.public_internal_fields.applicable_kinds = field # private_protected_fields - Define private and protected fields dotnet_naming_symbols.private_protected_fields.applicable_accessibilities = private, protected dotnet_naming_symbols.private_protected_fields.applicable_kinds = field # public_symbols - Define any public symbol dotnet_naming_symbols.public_symbols.applicable_accessibilities = public, internal, protected, protected_internal dotnet_naming_symbols.public_symbols.applicable_kinds = method, property, event, delegate # parameters - Defines any parameter dotnet_naming_symbols.parameters.applicable_kinds = parameter # non_interface_types - Defines class, struct, enum and delegate types dotnet_naming_symbols.non_interface_types.applicable_kinds = class, struct, enum, delegate # interface_types - Defines interfaces dotnet_naming_symbols.interface_types.applicable_kinds = interface # Naming Styles # camel_case - Define the camelCase style dotnet_naming_style.camel_case.capitalization = camel_case # pascal_case - Define the Pascal_case style dotnet_naming_style.pascal_case.capitalization = pascal_case # first_upper - The first character must start with an upper-case character dotnet_naming_style.first_upper.capitalization = first_word_upper # prefix_interface_interface_with_i - Interfaces must be PascalCase and the first character of an interface must be an 'I' dotnet_naming_style.prefix_interface_interface_with_i.capitalization = pascal_case dotnet_naming_style.prefix_interface_interface_with_i.required_prefix = I # Naming Rules # Constant fields must be PascalCase dotnet_naming_rule.constant_fields_must_be_pascal_case.severity = warning dotnet_naming_rule.constant_fields_must_be_pascal_case.symbols = constant_fields dotnet_naming_rule.constant_fields_must_be_pascal_case.style = pascal_case # Public, internal and protected readonly fields must be PascalCase dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.severity = warning dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.symbols = non_private_readonly_fields dotnet_naming_rule.non_private_readonly_fields_must_be_pascal_case.style = pascal_case # Static readonly fields must be PascalCase dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.severity = warning dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.symbols = static_readonly_fields dotnet_naming_rule.static_readonly_fields_must_be_pascal_case.style = pascal_case # Private readonly fields must be camelCase dotnet_naming_rule.private_readonly_fields_must_be_camel_case.severity = warning dotnet_naming_rule.private_readonly_fields_must_be_camel_case.symbols = private_readonly_fields dotnet_naming_rule.private_readonly_fields_must_be_camel_case.style = camel_case # Public and internal fields must be PascalCase dotnet_naming_rule.public_internal_fields_must_be_pascal_case.severity = warning dotnet_naming_rule.public_internal_fields_must_be_pascal_case.symbols = public_internal_fields dotnet_naming_rule.public_internal_fields_must_be_pascal_case.style = pascal_case # Private and protected fields must be camelCase dotnet_naming_rule.private_protected_fields_must_be_camel_case.severity = warning dotnet_naming_rule.private_protected_fields_must_be_camel_case.symbols = private_protected_fields dotnet_naming_rule.private_protected_fields_must_be_camel_case.style = camel_case # Public members must be capitalized dotnet_naming_rule.public_members_must_be_capitalized.severity = warning dotnet_naming_rule.public_members_must_be_capitalized.symbols = public_symbols dotnet_naming_rule.public_members_must_be_capitalized.style = first_upper # Parameters must be camelCase dotnet_naming_rule.parameters_must_be_camel_case.severity = warning dotnet_naming_rule.parameters_must_be_camel_case.symbols = parameters dotnet_naming_rule.parameters_must_be_camel_case.style = camel_case # Class, struct, enum and delegates must be PascalCase dotnet_naming_rule.non_interface_types_must_be_pascal_case.severity = warning dotnet_naming_rule.non_interface_types_must_be_pascal_case.symbols = non_interface_types dotnet_naming_rule.non_interface_types_must_be_pascal_case.style = pascal_case # Interfaces must be PascalCase and start with an 'I' dotnet_naming_rule.interface_types_must_be_prefixed_with_i.severity = warning dotnet_naming_rule.interface_types_must_be_prefixed_with_i.symbols = interface_types dotnet_naming_rule.interface_types_must_be_prefixed_with_i.style = prefix_interface_interface_with_i # C# Code Style Settings # See https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers [*.{cs,csx,cake}] # Indentation Preferences # http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_indent_block_contents csharp_indent_block_contents = true csharp_indent_braces = false csharp_indent_case_contents = true csharp_indent_labels = one_less_than_current csharp_indent_switch_labels = true # New Line Preferences # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_new_line_before_catch csharp_new_line_before_catch = true csharp_new_line_before_else = true csharp_new_line_before_finally = true csharp_new_line_before_members_in_anonymous_types = true csharp_new_line_before_members_in_object_initializers = true csharp_new_line_before_open_brace = all csharp_new_line_between_query_expression_clauses = true csharp_prefer_braces = true:suggestion csharp_prefer_simple_default_expression = true:warning # Wrapping Preferences # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_preserve_single_line_blocks csharp_preserve_single_line_blocks = true csharp_preserve_single_line_statements = false # Spacing Preferences # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_space_after_cast csharp_space_after_cast = false csharp_space_after_colon_in_inheritance_clause = true csharp_space_after_comma = true csharp_space_after_dot = false csharp_space_after_keywords_in_control_flow_statements = true csharp_space_after_semicolon_in_for_statement = true csharp_space_around_binary_operators = before_and_after csharp_space_around_declaration_statements = do_not_ignore csharp_space_before_colon_in_inheritance_clause = true csharp_space_before_comma = false csharp_space_before_dot = false csharp_space_before_open_square_brackets = false csharp_space_before_semicolon_in_for_statement = false csharp_space_between_empty_square_brackets = false csharp_space_between_method_call_empty_parameter_list_parentheses = false csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_call_parameter_list_parentheses = false csharp_space_between_method_declaration_empty_parameter_list_parentheses = false csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_parentheses = none csharp_space_between_square_brackets = false # CSharp Style Preferences # See http://kent-boogaart.com/blog/editorconfig-reference-for-c-developers#csharp_style_conditional_delegate_call csharp_style_conditional_delegate_call = true:warning csharp_style_expression_bodied_accessors = true:warning csharp_style_expression_bodied_constructors = false:warning csharp_style_expression_bodied_indexers = true:warning csharp_style_expression_bodied_methods = false:warning csharp_style_expression_bodied_operators =false:warning csharp_style_expression_bodied_properties = true:warning csharp_style_inlined_variable_declaration = true:warning csharp_style_pattern_matching_over_as_with_null_check = true:warning csharp_style_pattern_matching_over_is_with_cast_check = true:warning csharp_style_throw_expression = true:warning csharp_style_var_elsewhere = true:suggestion csharp_style_var_for_built_in_types = true:none csharp_style_var_when_type_is_apparent = true:suggestion # Resharper preferences # See https://www.jetbrains.com/help/rider/EditorConfig_Properties.html csharp_keep_blank_lines_in_declarations = 1 csharp_remove_blank_lines_near_braces_in_declarations = true csharp_keep_blank_lines_in_code = 1 csharp_remove_blank_lines_near_braces_in_code = true csharp_blank_lines_around_namespace = 1 csharp_blank_lines_inside_namespace = 0 csharp_blank_lines_around_type = 1 csharp_blank_lines_inside_type = 0 csharp_blank_lines_around_field = 0 csharp_blank_lines_around_single_line_field = 0 csharp_blank_lines_around_property = 1 csharp_blank_lines_around_single_line_property = 1 csharp_blank_lines_around_auto_property = 1 csharp_blank_lines_around_single_line_auto_property = 1 csharp_blank_lines_around_invocable = 1 csharp_blank_lines_around_single_line_invocable = 1 csharp_blank_lines_around_local_method = 1 csharp_blank_lines_around_single_line_local_method = 1 csharp_blank_lines_around_region = 1 csharp_blank_lines_inside_region = 1 csharp_blank_lines_between_using_groups = 0 csharp_blank_lines_after_using_list = 1 csharp_blank_lines_after_start_comment = 1 csharp_blank_lines_before_single_line_comment = 1 csharp_blank_lines_after_control_transfer_statements = 1 csharp_type_declaration_braces = next_line csharp_invocable_declaration_braces = next_line csharp_anonymous_method_declaration_braces = next_line csharp_accessor_owner_declaration_braces = next_line csharp_accessor_declaration_braces = next_line csharp_case_block_braces = next_line csharp_initializer_braces = next_line csharp_other_braces = next_line csharp_empty_block_style = multiline csharp_indent_style = space csharp_indent_size = 4 csharp_tab_width = 4 csharp_keep_user_linebreaks = false csharp_simple_embedded_statement_style = line_break csharp_simple_case_statement_style = line_break csharp_simple_embedded_block_style = line_break csharp_new_line_before_else = true csharp_new_line_before_while = true csharp_new_line_before_catch = true csharp_new_line_before_finally = true csharp_max_line_length = 160 csharp_wrap_parameters_style = chop_if_long csharp_wrap_before_declaration_lpar = false csharp_wrap_after_declaration_lpar = true csharp_wrap_arguments_style = chop_if_long csharp_wrap_before_invocation_lpar = false csharp_wrap_after_invocation_lpar = true csharp_wrap_before_comma = false csharp_wrap_before_arrow_with_expressions = false csharp_wrap_after_dot_in_method_calls = false csharp_wrap_chained_method_calls = chop_if_long csharp_wrap_before_extends_colon = false csharp_wrap_extends_list_style = chop_if_long csharp_wrap_for_stmt_header_style = chop_if_long csharp_wrap_before_ternary_opsigns = true csharp_wrap_ternary_expr_style = chop_if_long csharp_wrap_multiple_declaration_style = wrap_if_long csharp_wrap_linq_expressions = chop_if_long csharp_wrap_before_binary_opsign = false csharp_wrap_chained_binary_expressions = chop_if_long csharp_force_chop_compound_if_expression = false csharp_force_chop_compound_while_expression = false csharp_force_chop_compound_do_expression = false csharp_wrap_multiple_type_parameter_constraints_style = chop_always csharp_wrap_object_and_collection_initializer_style = chop_always csharp_wrap_array_initializer_style = chop_always csharp_wrap_before_first_type_parameter_constraint = false csharp_wrap_before_type_parameter_langle = false csharp_place_abstract_accessorholder_on_single_line = true csharp_place_simple_accessorholder_on_single_line = false csharp_place_accessor_with_attrs_holder_on_single_line = false csharp_place_simple_accessor_on_single_line = true csharp_place_simple_method_on_single_line = false csharp_place_simple_anonymousmethod_on_single_line = false csharp_place_simple_initializer_on_single_line = true csharp_place_type_attribute_on_same_line = false csharp_place_method_attribute_on_same_line = false csharp_place_accessorholder_attribute_on_same_line = false csharp_place_simple_accessor_attribute_on_same_line = false csharp_place_complex_accessor_attribute_on_same_line = false csharp_place_field_attribute_on_same_line = false csharp_place_constructor_initializer_on_same_line = false csharp_place_type_constraints_on_same_line = false csharp_allow_comment_after_lbrace = false csharp_continuous_indent_multiplier = false csharp_indent_switch_labels = true csharp_indent_nested_usings_stmt = true csharp_indent_nested_fixed_stmt = true csharp_indent_nested_lock_stmt = true csharp_indent_nested_for_stmt = true csharp_indent_nested_foreach_stmt = true csharp_indent_nested_while_stmt = true csharp_indent_type_constraints = true csharp_stick_comment = false csharp_indent_method_decl_pars = inside csharp_indent_invocation_pars = inside csharp_indent_statement_pars = inside csharp_indent_typeparam_angles = inside csharp_indent_typearg_angles = inside csharp_indent_pars = inside csharp_align_multiline_parameter = false csharp_align_first_arg_by_paren = false csharp_align_multiline_argument = false csharp_align_multiline_extends_list = false csharp_align_multiline_expression = false csharp_align_multiline_binary_expressions_chain = false csharp_align_multiline_calls_chain = false csharp_align_multiline_array_and_object_initializer = false csharp_indent_anonymous_method_block = false csharp_align_multiline_for_stmt = false csharp_align_multiple_declaration = false csharp_align_multline_type_parameter_list = false csharp_align_multline_type_parameter_constrains = false csharp_align_linq_query = false csharp_special_else_if_treatment = true csharp_insert_final_newline = false csharp_old_engine = false csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_call_name_and_opening_parenthesis = false csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_between_method_declaration_name_and_open_parenthesis = false csharp_space_before_open_square_brackets = false csharp_space_after_keywords_in_control_flow_statements = true csharp_space_before_typeof_parentheses = false csharp_space_before_default_parentheses = false csharp_space_before_checked_parentheses = false csharp_space_before_sizeof_parentheses = false csharp_space_before_nameof_parentheses = false csharp_space_before_type_parameter_angle = false csharp_space_before_type_argument_angle = false csharp_space_around_binary_operator = true csharp_space_around_member_access_operator = false csharp_space_after_logical_not_op = false csharp_space_after_unary_minus_op = false csharp_space_after_unary_plus_op = false csharp_space_after_ampersand_op = false csharp_space_after_asterik_op = false csharp_space_within_parentheses = false csharp_space_between_method_declaration_parameter_list_parentheses = false csharp_space_between_method_declaration_empty_parameter_list_parentheses = false csharp_space_between_method_call_parameter_list_parentheses = false csharp_space_between_method_call_empty_parameter_list_parentheses = false csharp_space_between_square_brackets = false csharp_space_between_typecast_parentheses = false space_between_parentheses_of_control_flow_statements = false csharp_space_within_typeof_parentheses = false csharp_space_within_default_parentheses = false csharp_space_within_checked_parentheses = false csharp_space_within_sizeof_parentheses = false csharp_space_within_nameof_parentheses = false csharp_space_within_type_parameter_angles = false csharp_space_within_type_argument_angles = false csharp_space_before_ternary_quest = true csharp_space_after_ternary_quest = true csharp_space_before_ternary_colon = true csharp_space_after_ternary_colon = true csharp_space_after_cast = false csharp_space_near_postfix_and_prefix_op = false csharp_space_before_comma = false csharp_space_after_comma = true csharp_space_before_semicolon_in_for_statement = false csharp_space_after_semicolon_in_for_statement = true csharp_space_before_attribute_colon = false csharp_space_after_attribute_colon = true csharp_space_before_colon_in_inheritance_clause = true csharp_space_after_colon_in_inheritance_clause = true csharp_space_around_dot = false csharp_space_around_lambda_arrow = true csharp_space_before_singleline_accessorholder = true csharp_space_in_singleline_accessorholder = true csharp_space_between_accessors_in_singleline_property = true csharp_space_between_attribute_sections = false csharp_space_withing_empty_braces = true csharp_space_in_singleline_method = true csharp_space_in_singleline_anonymous_method = true csharp_space_between_square_brackets = false csharp_space_before_open_square_brackets = false csharp_space_between_square_brackets = false csharp_space_between_empty_square_brackets = false csharp_space_within_single_line_array_initializer_braces = true csharp_space_before_pointer_asterik_declaration = false csharp_space_before_semicolon = false csharp_space_before_colon_in_case = false csharp_space_before_nullable_mark = false csharp_space_before_type_parameter_constraint_colon = true csharp_space_after_type_parameter_constraint_colon = true csharp_space_around_alias_eq = true csharp_space_before_trailing_comment = true csharp_space_after_operator_keyword = true xmldoc_wrap_tags_and_pi = false xmldoc_spaces_around_eq_in_pi_attribute = false xmldoc_space_after_last_pi_attribute = false xmldoc_pi_attribute_style = on_single_line xmldoc_pi_attributes_indent = single_indent xmldoc_blank_line_after_pi = false xmldoc_spaces_around_eq_in_attribute = false xmldoc_space_after_last_attribute = false xmldoc_space_before_self_closing = false xmldoc_attribute_style = on_single_line xmldoc_attribute_indent = single_indent xmldoc_keep_user_linebreaks = false xmldoc_linebreaks_inside_tags_for_multiline_elements = true xmldoc_linebreaks_inside_tags_for_elements_with_child_elements = true xmldoc_linebreaks_inside_tags_for_elements_longer_than = 0 xmldoc_spaces_inside_tags = 1 xmldoc_wrap_text = false xmldoc_wrap_around_elements = true xmldoc_indent_child_elements = zeroindent xmldoc_indent_text = zeroident xmldoc_max_blank_lines_between_tags = 0 xmldoc_linebreak_before_multiline_elements = true xmldoc_linebreak_before_singleline_elements = false csharp_trailing_comma_in_multiline_lists = true