Files
Umbraco-CMS/.editorconfig
T

38 lines
1.3 KiB
INI
Raw Normal View History

2018-03-20 10:43:18 +01:00
# editorconfig.org
2017-08-14 18:21:48 +02:00
2018-03-20 10:43:18 +01:00
# top-most EditorConfig file
root = true
# Default settings:
# A newline ending every file
# Use 4 spaces as indentation
2017-08-14 18:21:48 +02:00
[*]
2018-03-20 10:43:18 +01:00
insert_final_newline = true
2018-07-06 12:26:14 +02:00
end_of_line = crlf
2017-08-14 18:21:48 +02:00
indent_style = space
indent_size = 4
2018-03-20 10:43:18 +01:00
# Trim trailing whitespace, limited support.
# https://github.com/editorconfig/editorconfig/wiki/Property-research:-Trim-trailing-spaces
trim_trailing_whitespace = true
[*.{cs,vb}]
dotnet_style_predefined_type_for_locals_parameters_members = true:error
dotnet_naming_rule.private_members_with_underscore.symbols = private_fields
dotnet_naming_rule.private_members_with_underscore.style = prefix_underscore
dotnet_naming_rule.private_members_with_underscore.severity = suggestion
dotnet_naming_symbols.private_fields.applicable_kinds = field
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
dotnet_naming_style.prefix_underscore.capitalization = camel_case
2018-09-06 14:10:10 +02:00
dotnet_naming_style.prefix_underscore.required_prefix = _
# https://github.com/MicrosoftDocs/visualstudio-docs/blob/master/docs/ide/editorconfig-code-style-settings-reference.md
[*.cs]
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_prefer_braces = false : none