Skip to content

Commit b99b55e

Browse files
committed
feat: add new C# formatting rules in .editorconfig
1 parent c985542 commit b99b55e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ 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
2327
# Always insert a newline before opening braces '{'
2428
csharp_new_line_before_open_brace = methods, properties, control_blocks, types
2529
# Insert spaces after cast operators

0 commit comments

Comments
 (0)