-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
109 lines (86 loc) · 2.5 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Default settings
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# (Please don't specify an indent_size here; that has too many unintended consequences.)
[*.md]
indent_size = 4
trim_trailing_whitespace = false
[*.sql]
indent_size = 4
indent_style = space
# .NET
[*.{cs,csx,vb,vbx,ashx}]
charset = utf-8-bom
indent_style = tab
tab_width = 4
[*.{asp,aspx,cshtml,vbhtml}]
charset = utf-8-bom
indent_size = 2
indent_style = space
# Shell scripts
[*.{bat,cmd}]
end_of_line = crlf
indent_size = 4
[*.sh]
end_of_line = lf
indent_size = 4
[*.{ps1,psm1}]
charset = utf-8-bom
indent_size = 4
indent_style = space
# Web
[*.{css,html,js,json,yml}]
indent_size = 2
indent_style = space
insert_final_newline = false
# XML
[*.{xml,xsl,xslt,xsd}]
indent_size = 2
indent_style = space
insert_final_newline = false
# Xml project files
[*.*proj]
charset = utf-8-bom
indent_size = 2
indent_style = space
insert_final_newline = false
# Xml config files
[*.{props,targets,ruleset,Config,config,nuspec,pubxml,resx,vsixmanifest,vsct}]
charset = utf-8-bom
indent_size = 2
indent_style = space
insert_final_newline = false
# CSharp code style settings:
[*.cs]
# Sort using and Import directives with System.* appearing first
dotnet_sort_system_directives_first = true
# Don't use this. qualifier
dotnet_style_qualification_for_field = false:suggestion
dotnet_style_qualification_for_property = false:suggestion
# use int x = .. over Int32
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
# use int.MaxValue over Int32.MaxValue
dotnet_style_predefined_type_for_member_access = true:none
# Do not require var all the time.
csharp_style_var_for_built_in_types = false:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:none
csharp_prefer_braces = true:suggestion
# Indentation Settings
csharp_indent_labels = no_change
# Newline settings
csharp_new_line_before_open_brace = accessors,control_blocks,events,indexers,local_functions,methods,properties,types
# Spacing settings
csharp_space_after_cast = true
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_parentheses = false
# Wrapping settings
csharp_preserve_single_line_blocks = true
csharp_preserve_single_line_statements = false