Skip to content

Commit 9578f58

Browse files
committed
Add .editorconfig #4
1 parent a0bd771 commit 9578f58

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

.editorconfig

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Visual Studio generated .editorconfig file with C++ settings.
2+
root = true
3+
4+
[*]
5+
charset=utf-8
6+
# We don't specify so people can use their native
7+
# end_of_line = crlf
8+
trim_trailing_whitespace=true
9+
insert_final_newline=true
10+
indent_style=space
11+
indent_size=4
12+
tab_width=4
13+
max_line_length=140
14+
15+
[*.hlsl]
16+
charset=latin1
17+
18+
[*.{c++,cc,cpp,cppm,cu,cuh,cxx,h,h++,hh,hpp,hxx,inl,ipp,ixx,tlh,tli}]
19+
20+
# Visual C++ Code Style settings
21+
22+
cpp_generate_documentation_comments = xml
23+
24+
# Visual C++ Formatting settings
25+
26+
cpp_indent_braces = false
27+
cpp_indent_multi_line_relative_to = innermost_parenthesis
28+
cpp_indent_within_parentheses = indent
29+
cpp_indent_preserve_within_parentheses = true
30+
cpp_indent_case_contents = true
31+
cpp_indent_case_labels = false
32+
cpp_indent_case_contents_when_block = false
33+
cpp_indent_lambda_braces_when_parameter = true
34+
cpp_indent_goto_labels = one_left
35+
cpp_indent_preprocessor = leftmost_column
36+
cpp_indent_access_specifiers = false
37+
cpp_indent_namespace_contents = true
38+
cpp_indent_preserve_comments = false
39+
cpp_new_line_before_open_brace_namespace = ignore
40+
cpp_new_line_before_open_brace_type = ignore
41+
cpp_new_line_before_open_brace_function = ignore
42+
cpp_new_line_before_open_brace_block = ignore
43+
cpp_new_line_before_open_brace_lambda = ignore
44+
cpp_new_line_scope_braces_on_separate_lines = false
45+
cpp_new_line_close_brace_same_line_empty_type = false
46+
cpp_new_line_close_brace_same_line_empty_function = false
47+
cpp_new_line_before_catch = true
48+
cpp_new_line_before_else = true
49+
cpp_new_line_before_while_in_do_while = false
50+
cpp_space_before_function_open_parenthesis = remove
51+
cpp_space_within_parameter_list_parentheses = false
52+
cpp_space_between_empty_parameter_list_parentheses = false
53+
cpp_space_after_keywords_in_control_flow_statements = true
54+
cpp_space_within_control_flow_statement_parentheses = false
55+
cpp_space_before_lambda_open_parenthesis = false
56+
cpp_space_within_cast_parentheses = false
57+
cpp_space_after_cast_close_parenthesis = false
58+
cpp_space_within_expression_parentheses = false
59+
cpp_space_before_block_open_brace = true
60+
cpp_space_between_empty_braces = false
61+
cpp_space_before_initializer_list_open_brace = false
62+
cpp_space_within_initializer_list_braces = true
63+
cpp_space_preserve_in_initializer_list = true
64+
cpp_space_before_open_square_bracket = false
65+
cpp_space_within_square_brackets = false
66+
cpp_space_before_empty_square_brackets = false
67+
cpp_space_between_empty_square_brackets = false
68+
cpp_space_group_square_brackets = true
69+
cpp_space_within_lambda_brackets = false
70+
cpp_space_between_empty_lambda_brackets = false
71+
cpp_space_before_comma = false
72+
cpp_space_after_comma = true
73+
cpp_space_remove_around_member_operators = true
74+
cpp_space_before_inheritance_colon = true
75+
cpp_space_before_constructor_colon = true
76+
cpp_space_remove_before_semicolon = true
77+
cpp_space_after_semicolon = true
78+
cpp_space_remove_around_unary_operator = true
79+
cpp_space_around_binary_operator = insert
80+
cpp_space_around_assignment_operator = insert
81+
cpp_space_pointer_reference_alignment = left
82+
cpp_space_around_ternary_operator = insert
83+
cpp_wrap_preserve_blocks = one_liners

0 commit comments

Comments
 (0)