From 0ffec73261f3e6eba7f4f2f56ccbb40985f9c75e Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 14 Oct 2026 22:33:16 +0500 Subject: [PATCH] repo: define C# code style in .editorconfig --- .editorconfig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.editorconfig b/.editorconfig index 4ff8849..39f9cd5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,6 +11,20 @@ trim_trailing_whitespace = true indent_size = 2 [*.cs] +resharper_csharp_max_line_length = 160 + +# Using directive options +dotnet_sort_system_directives_first = true +dotnet_separate_import_directive_groups = true + +# Prefer var whenever possible +csharp_style_var_for_built_in_types = true:suggestion +csharp_style_var_when_type_is_apparent = true:suggestion +csharp_style_var_elsewhere = true:suggestion + +# Indentation preferences +csharp_indent_labels = no_change + # IDE0079: Remove unnecessary suppression dotnet_remove_unnecessary_suppression_exclusions = category:ReSharper