-
Notifications
You must be signed in to change notification settings - Fork 2
/
.editorconfig
57 lines (48 loc) · 1.54 KB
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
root=true
# EditorConfig is awesome: https://EditorConfig.org
# Don't use tabs for indentation.
[*]
indent_style=space
# ReSharper properties
resharper_html_indent_size=2
resharper_html_tab_width=2
resharper_js_indent_size=2
resharper_js_tab_width=2
resharper_protobuf_indent_size=2
resharper_protobuf_tab_width=2
resharper_xml_indent_size=2
resharper_xml_tab_width=2
# (Please don't specify an indent_size here; that has too many unintended consequences.)
# C#
[*.{cs,csx,vb,vbx}]
indent_size=4
insert_final_newline=true
charset=utf-8-bom
# JS
[*.{vue,ts,js,tsx,jsx}]
indent_size=2
insert_final_newline=true
charset=utf-8-bom
# JSON files
[*.json]
indent_size=2
[*.{appxmanifest,asax,ascx,aspx,axml,build,config,cshtml,csproj,dbml,discomap,dtd,htm,html,jsproj,lsproj,master,njsproj,nuspec,proj,props,proto,razor,resjson,skin,StyleCop,targets,tasks,vbproj,xaml,xamlx,xml,xoml,xsd}]
indent_size=2
[*.cs]
# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = warning
# New line preferences
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
# Indentation preferences
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents = true
csharp_indent_case_contents_when_block = false
csharp_indent_labels = one_less_than_current
csharp_indent_switch_labels = true