diff options
| -rw-r--r-- | .editorconfig | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..2ebba4b3 --- /dev/null +++ b/.editorconfig | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | # Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
| 2 | |||
| 3 | root = true | ||
| 4 | |||
| 5 | [*] | ||
| 6 | charset = utf-8 | ||
| 7 | indent_style = space | ||
| 8 | indent_size = 4 | ||
| 9 | trim_trailing_whitespace = true | ||
| 10 | |||
| 11 | [*.{cs,vb}] | ||
| 12 | dotnet_sort_system_directives_first = true | ||
| 13 | |||
| 14 | [*.cs] | ||
| 15 | csharp_indent_case_contents = true : error | ||
| 16 | csharp_indent_switch_labels = true : error | ||
| 17 | csharp_new_line_before_open_brace = all | ||
| 18 | csharp_prefer_braces = true : error | ||
| 19 | csharp_style_expression_bodied_methods = when_on_single_line : suggestion | ||
| 20 | csharp_style_expression_bodied_constructors = when_on_single_line : suggestion | ||
| 21 | csharp_style_expression_bodied_operators = when_on_single_line : suggestion | ||
| 22 | csharp_style_expression_bodied_properties = when_on_single_line : suggestion | ||
| 23 | csharp_style_expression_bodied_indexers = when_on_single_line : suggestion | ||
| 24 | csharp_style_expression_bodied_accessors = when_on_single_line : suggestion | ||
| 25 | csharp_style_var_elsewhere = true : suggestion | ||
| 26 | csharp_style_var_for_built_in_types = true : suggestion | ||
| 27 | csharp_style_var_when_type_is_apparent = true : suggestion | ||
| 28 | dotnet_style_qualification_for_event = true : error | ||
| 29 | dotnet_style_qualification_for_field = true : error | ||
| 30 | dotnet_style_qualification_for_method = true : error | ||
| 31 | dotnet_style_qualification_for_property = true : error | ||
| 32 | |||
| 33 | [*.targets] | ||
| 34 | indent_size = 2 | ||
