@@ -10,12 +10,76 @@ end_of_line = CRLF
1010
1111[* .{cs,fs} ]
1212indent_style = tab
13- indent_size = 4
1413
1514[* .{sln,proj,props,targets,xaml,config,nuspec,vsixmanifest,vsct,vstemplate} ]
1615indent_style = tab
17- indent_size = 4
1816
19- [* .{csproj,ps1,resx,rst,fsproj} ]
17+ [* .{csproj,ps1,resx,rst,fsproj,wxs,wxi } ]
2018indent_style = space
2119indent_size = 2
20+
21+ [* .{tt} ]
22+ indent_style = space
23+ indent_size = 4
24+
25+ # CSharp code style settings:
26+ [* .cs ]
27+ # Prefer "var" everywhere
28+ csharp_style_var_for_built_in_types = true :suggestion
29+ csharp_style_var_when_type_is_apparent = true :suggestion
30+ csharp_style_var_elsewhere = true :suggestion
31+
32+ # Prefer method-like constructs to have a block body
33+ csharp_style_expression_bodied_methods = false :none
34+ csharp_style_expression_bodied_constructors = false :none
35+ csharp_style_expression_bodied_operators = false :none
36+
37+ # Prefer property-like constructs to have a block body
38+ csharp_style_expression_bodied_properties = false :none
39+ csharp_style_expression_bodied_indexers = false :none
40+ csharp_style_expression_bodied_accessors = false :none
41+
42+ # Don't suggest more modern language features when available
43+ csharp_style_pattern_matching_over_is_with_cast_check = false :suggestion
44+ csharp_style_pattern_matching_over_as_with_null_check = false :suggestion
45+ csharp_style_inlined_variable_declaration = false :suggestion
46+ csharp_style_throw_expression = false :suggestion
47+ csharp_style_conditional_delegate_call = false :suggestion
48+
49+ # Newline settings
50+ csharp_new_line_before_open_brace = all
51+ csharp_new_line_before_else = true
52+ csharp_new_line_before_catch = true
53+ csharp_new_line_before_finally = true
54+ csharp_new_line_before_members_in_object_initializers = true
55+ csharp_new_line_before_members_in_anonymous_types = true
56+
57+ # Indentation preferences
58+ csharp_indent_block_contents = true
59+ csharp_indent_braces = false
60+ csharp_indent_case_contents = true
61+ csharp_indent_switch_labels = true
62+ csharp_indent_labels = flush_left
63+
64+ # Space preferences
65+ csharp_space_after_cast = false
66+ csharp_space_after_colon_in_inheritance_clause = true
67+ csharp_space_after_comma = true
68+ csharp_space_after_dot = false
69+ csharp_space_after_keywords_in_control_flow_statements = true
70+ csharp_space_after_semicolon_in_for_statement = true
71+ csharp_space_around_binary_operators = before_and_after
72+ csharp_space_around_declaration_statements = do_not_ignore
73+ csharp_space_before_colon_in_inheritance_clause = true
74+ csharp_space_before_comma = false
75+ csharp_space_before_dot = false
76+ csharp_space_before_open_square_brackets = false
77+ csharp_space_before_semicolon_in_for_statement = false
78+ csharp_space_between_empty_square_brackets = false
79+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
80+ csharp_space_between_method_call_name_and_opening_parenthesis = false
81+ csharp_space_between_method_call_parameter_list_parentheses = false
82+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
83+ csharp_space_between_method_declaration_name_and_open_parenthesis = false
84+ csharp_space_between_method_declaration_parameter_list_parentheses = false
85+ csharp_space_between_square_brackets = false
0 commit comments