From 7a78c378512c3092d407090f807a3ab2efe48702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 28 May 2020 18:56:10 +0200 Subject: [PATCH] Add .NET Coding Conventions --- .editorconfig | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index b53a162a28..c2a91b70fd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,12 +8,24 @@ end_of_line = LF insert_final_newline = true trim_trailing_whitespace = true -; 4-column tab indentation +; 4-column tab indentation and .NET coding conventions [*.cs] indent_style = tab indent_size = 4 +dotnet_separate_import_directive_groups = false +dotnet_sort_system_directives_first = true + +csharp_style_var_elsewhere = true +csharp_style_var_for_built_in_types = true +csharp_style_var_when_type_is_apparent = true + +csharp_prefer_braces = false +csharp_using_directive_placement = outside_namespace +csharp_new_line_before_open_brace = all +csharp_space_around_binary_operators = before_and_after + ; 4-column tab indentation [*.yaml] indent_style = tab -indent_size = 4 \ No newline at end of file +indent_size = 4