From 9e7cea74f4bc180a3af9fcb55165ac04196025a2 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Mon, 15 Nov 2021 21:45:45 -0800 Subject: [PATCH] Change razor formatting config to prevent VS formatting problems --- .editorconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 0e531d9..d1d7cf4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,11 +4,16 @@ root = true insert_final_newline = true max_line_length = 100 -[*.{cs,cshtml,razor,html,xml,js,css,csproj}] +[*.{cs,cshtml,html,xml,js,css,csproj}] indent_style = tab tab_width = 4 trim_trailing_whitespace = true +[*.razor] +indent_style = space +indent_width = 4 +trim_trailing_whitespace = true + [*.cs] csharp_new_line_before_open_brace = none dotnet_style_qualification_for_field = true