|
| 1 | +# editorconfig: http://editorconfig.org/ |
| 2 | +# Help developers standardize spaces, tabs, encoding, end-line characters across editors |
| 3 | + |
| 4 | +# top-most .editorconfig file |
| 5 | +root = true |
| 6 | + |
| 7 | +# defaults for all files |
| 8 | +[*] |
| 9 | +charset = utf-8 |
| 10 | +end_of_line = lf |
| 11 | +tab_width = 4 |
| 12 | +indent_size = 4 |
| 13 | +indent_style = space |
| 14 | +insert_final_newline = true |
| 15 | +trim_trailing_whitespace = true |
| 16 | + |
| 17 | +# markdown, diff overrides |
| 18 | +# two trailing spaces are required for <br/> and hard line-breaks in markdown files |
| 19 | +# see: (https://daringfireball.net/projects/markdown/syntax#p) and (http://spec.commonmark.org/0.27/#hard-line-break) |
| 20 | +[*.{md,diff}] |
| 21 | +trim_trailing_whitespace = false |
| 22 | + |
| 23 | +[*.{md,xml,xsd,gprops,man,natvis}] |
| 24 | +indent_size = 2 |
| 25 | + |
| 26 | +# XML-based MSBuild and Visual Studio files |
| 27 | +[*.{props,targets,settings,*proj,vcxitems,filters,ruleset,config,nuspec,resx,vsixmanifest,vsct}] |
| 28 | +indent_size = 2 |
| 29 | + |
| 30 | +# Exceptions to the above *proj wildcard |
| 31 | +[*.vdproj] |
| 32 | +indent_size = 4 |
| 33 | + |
| 34 | +# Visual Studio uses hard tabs for SLN files, so don't fight it |
| 35 | +[*.sln] |
| 36 | +indent_style = tab |
| 37 | + |
| 38 | +# Visual Studio removes the last empty line, so don't fight it |
| 39 | +[*.{vcxproj}] |
| 40 | +insert_final_newline = false |
| 41 | + |
| 42 | +# YAML overrides |
| 43 | +[*.{yml,yaml}] |
| 44 | +indent_size = 2 |
| 45 | + |
| 46 | +[*.{cpp,h,idl}] |
| 47 | +trim_trailing_whitespace = true |
| 48 | +insert_final_newline = true |
| 49 | +cpp_indent_braces=false |
| 50 | +cpp_indent_multi_line_relative_to=innermost_parenthesis |
| 51 | +cpp_indent_within_parentheses=indent |
| 52 | +cpp_indent_preserve_within_parentheses=false |
| 53 | +cpp_indent_case_contents=true |
| 54 | +cpp_indent_case_labels=false |
| 55 | +cpp_indent_case_contents_when_block=false |
| 56 | +cpp_indent_lambda_braces_when_parameter=true |
| 57 | +cpp_indent_goto_labels=one_left |
| 58 | +cpp_indent_preprocessor=leftmost_column |
| 59 | +cpp_indent_access_specifiers=false |
| 60 | +cpp_indent_namespace_contents=true |
| 61 | +cpp_indent_preserve_comments=false |
| 62 | +cpp_new_line_before_open_brace_namespace=ignore |
| 63 | +cpp_new_line_before_open_brace_type=ignore |
| 64 | +cpp_new_line_before_open_brace_function=ignore |
| 65 | +cpp_new_line_before_open_brace_block=ignore |
| 66 | +cpp_new_line_before_open_brace_lambda=ignore |
| 67 | +cpp_new_line_scope_braces_on_separate_lines=false |
| 68 | +cpp_new_line_close_brace_same_line_empty_type=false |
| 69 | +cpp_new_line_close_brace_same_line_empty_function=false |
| 70 | +cpp_new_line_before_catch=true |
| 71 | +cpp_new_line_before_else=true |
| 72 | +cpp_new_line_before_while_in_do_while=false |
| 73 | +cpp_space_before_function_open_parenthesis=remove |
| 74 | +cpp_space_within_parameter_list_parentheses=false |
| 75 | +cpp_space_between_empty_parameter_list_parentheses=false |
| 76 | +cpp_space_after_keywords_in_control_flow_statements=true |
| 77 | +cpp_space_within_control_flow_statement_parentheses=false |
| 78 | +cpp_space_before_lambda_open_parenthesis=false |
| 79 | +cpp_space_within_cast_parentheses=false |
| 80 | +cpp_space_after_cast_close_parenthesis=false |
| 81 | +cpp_space_within_expression_parentheses=false |
| 82 | +cpp_space_before_block_open_brace=true |
| 83 | +cpp_space_between_empty_braces=false |
| 84 | +cpp_space_before_initializer_list_open_brace=false |
| 85 | +cpp_space_within_initializer_list_braces=true |
| 86 | +cpp_space_preserve_in_initializer_list=true |
| 87 | +cpp_space_before_open_square_bracket=false |
| 88 | +cpp_space_within_square_brackets=false |
| 89 | +cpp_space_before_empty_square_brackets=false |
| 90 | +cpp_space_between_empty_square_brackets=false |
| 91 | +cpp_space_group_square_brackets=true |
| 92 | +cpp_space_within_lambda_brackets=false |
| 93 | +cpp_space_between_empty_lambda_brackets=false |
| 94 | +cpp_space_before_comma=false |
| 95 | +cpp_space_after_comma=true |
| 96 | +cpp_space_remove_around_member_operators=true |
| 97 | +cpp_space_before_inheritance_colon=true |
| 98 | +cpp_space_before_constructor_colon=true |
| 99 | +cpp_space_remove_before_semicolon=true |
| 100 | +cpp_space_after_semicolon=false |
| 101 | +cpp_space_remove_around_unary_operator=true |
| 102 | +cpp_space_around_binary_operator=insert |
| 103 | +cpp_space_around_assignment_operator=insert |
| 104 | +cpp_space_pointer_reference_alignment=left |
| 105 | +cpp_space_around_ternary_operator=insert |
| 106 | +cpp_wrap_preserve_blocks=one_liners |
0 commit comments