From 512f42c8c65ff33a4cb1c726c48a0f01103f7e4a Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Thu, 23 Jun 2022 11:16:30 +0100 Subject: [PATCH] Adjust editor config to reflect cast conventions in C# libraries Most of our code includes a space after the cast, e.g. `(int) x` instead of `(int)x`. This .editorconfig change means that will be the default formatting when it's performed by the editor. --- csharp/.editorconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/csharp/.editorconfig b/csharp/.editorconfig index 5e2afd0bee75..a2bf78c3318a 100644 --- a/csharp/.editorconfig +++ b/csharp/.editorconfig @@ -14,4 +14,7 @@ tab_width = 4 # New line preferences end_of_line = lf insert_final_newline = false -trim_trailing_whitespace = true \ No newline at end of file +trim_trailing_whitespace = true + +[*.cs] +csharp_space_after_cast = true