Skip to content

Commit 85fc8ef

Browse files
committed
feat: update C# code style rules in .editorconfig
1 parent b99b55e commit 85fc8ef

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.editorconfig

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,18 @@ tab_width = 4
2020

2121
# StyleCop Diagnostic Rules =================
2222

23-
# Ensure opening and closing braces are indented correctly
24-
csharp_indent_braces = true
25-
# Allow code blocks to remain on a single line if they fit
26-
csharp_preserve_single_line_blocks = true
2723
# Always insert a newline before opening braces '{'
2824
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
25+
# Display multiple statements and member declarations on a single line
26+
csharp_preserve_single_line_statements = false
27+
# Allow code blocks to remain on a single line if they fit
28+
csharp_preserve_single_line_blocks = true
29+
# Indent switch label
30+
csharp_indent_switch_labels = true
31+
# Indent the contents of the block.
32+
csharp_indent_block_contents = true
33+
# Ensure opening and closing braces are indented correctly
34+
csharp_indent_braces = false
2935
# Insert spaces after cast operators
3036
csharp_space_after_cast = true
3137
# Insert a space before colons ':' in inheritance clauses

0 commit comments

Comments
 (0)