Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit f1843fe

Browse files
committed
Chore: Add .editorconfig
1 parent 213ad41 commit f1843fe

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
root = true
2+
3+
[*]
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
indent_style = space
7+
8+
[*.cs]
9+
csharp_new_line_before_open_brace = all
10+
csharp_new_line_before_else = true
11+
csharp_new_line_before_catch = true
12+
csharp_new_line_before_finally = true
13+
csharp_indent_case_contents = true
14+
csharp_indent_case_contents_when_block = false
15+
csharp_indent_switch_labels = true
16+
csharp_indent_block_contents = true
17+
csharp_space_after_keywords_in_control_flow_statements = true
18+
csharp_space_before_colon_in_inheritance_clause = true
19+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
20+
csharp_space_between_method_call_name_and_opening_parenthesis = false
21+
csharp_space_after_comma = true
22+
csharp_space_after_dot = false
23+
csharp_space_before_dot = false
24+
csharp_space_after_semicolon_in_for_statement = true
25+
csharp_space_before_semicolon_in_for_statement = false
26+
csharp_space_around_declaration_statements = false
27+
dotnet_sort_system_directives_first = true
28+
29+
[*.{cs,cshtml,js}]
30+
indent_size = 4
31+
32+
[*.{sh,md,csproj,json,yml,nix,css}]
33+
indent_size = 2

0 commit comments

Comments
 (0)