@@ -20,16 +20,50 @@ tab_width = 4
20
20
21
21
# StyleCop Diagnostic Rules =================
22
22
23
- # Indent 'case' and 'default' labels within a switch statement
24
- csharp_indent_switch_labels = true
25
- # Force a newline before 'catch' blocks
26
- csharp_new_line_before_catch = true
27
- # Force a newline before 'else' keywords
28
- csharp_new_line_before_else = true
29
- # Force a newline before 'finally' blocks
30
- csharp_new_line_before_finally = true
31
23
# Always insert a newline before opening braces '{'
32
24
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
25
+ # Insert spaces after cast operators
26
+ csharp_space_after_cast = true
27
+ # Insert a space before colons ':' in inheritance clauses
28
+ csharp_space_before_colon_in_inheritance_clause = true
29
+ # Insert spaces after colons ':' in inheritance clauses
30
+ csharp_space_after_colon_in_inheritance_clause = true
31
+ # Do not insert a space before commas ','
32
+ csharp_space_before_comma = false
33
+ # Insert a space after commas ','
34
+ csharp_space_after_comma = true
35
+ # Do not insert a space before dots '.'
36
+ csharp_space_before_dot = false
37
+ # Do not insert a space after dots '.'
38
+ csharp_space_after_dot = false
39
+ # Insert a space after control flow keywords ('if', 'while', 'for', etc.)
40
+ csharp_space_after_keywords_in_control_flow_statements = true
41
+ # Insert a space after semicolons ';' in 'for' statements
42
+ csharp_space_after_semicolon_in_for_statement = true
43
+ # Insert spaces before and after binary operators
44
+ csharp_space_around_binary_operators = before_and_after
45
+ # Do not insert a space before open square brackets '['
46
+ csharp_space_before_open_square_brackets = false
47
+ # Do not insert a space before semicolons ';' in 'for' statements
48
+ csharp_space_before_semicolon_in_for_statement = false
49
+ # Do not insert spaces inside empty square brackets '[]'
50
+ csharp_space_between_empty_square_brackets = false
51
+ # Do not insert spaces within empty parameter lists in method calls
52
+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
53
+ # Do not insert a space between method names and opening parentheses '('
54
+ csharp_space_between_method_call_name_and_opening_parenthesis = false
55
+ # Do not insert spaces inside parameter list parentheses in method calls
56
+ csharp_space_between_method_call_parameter_list_parentheses = false
57
+ # Do not insert spaces within empty parameter lists in method declarations
58
+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
59
+ # Do not insert a space between method names and opening parentheses '(' in declarations
60
+ csharp_space_between_method_declaration_name_and_open_parenthesis = false
61
+ # Do not insert spaces inside parameter list parentheses in method declarations
62
+ csharp_space_between_method_declaration_parameter_list_parentheses = false
63
+ # Do not insert spaces within parentheses '()'
64
+ csharp_space_between_parentheses = control_flow_statements, type_casts
65
+ # Do not insert spaces within square brackets '[]'
66
+ csharp_space_between_square_brackets = false
33
67
# Recommend using type inference ('var') for variable declarations
34
68
csharp_style_var_elsewhere = true :suggestion
35
69
# Recommend using type inference ('var') for built-in types (e.g., 'int')
0 commit comments