From e08e920c62624e636a57e2ddf19a7d2053346cdc Mon Sep 17 00:00:00 2001 From: Tayrtahn Date: Wed, 9 Jul 2025 14:33:18 -0400 Subject: [PATCH] Prefer file-scoped namespaces in `.editorconfig` (#38879) Prefer file-scoped namespaces in .editorconfig --- .editorconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.editorconfig b/.editorconfig index 8a5cf43521..a87e5e0651 100644 --- a/.editorconfig +++ b/.editorconfig @@ -77,6 +77,8 @@ csharp_style_expression_bodied_methods = false:suggestion #csharp_style_expression_bodied_operators = false:silent csharp_style_expression_bodied_properties = true:suggestion +csharp_style_namespace_declarations = file_scoped:suggestion + # Pattern matching preferences #csharp_style_pattern_matching_over_as_with_null_check = true:suggestion #csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion