From e7d00f37a27c21b7ba89a6fb5a6e9c5e16aeb839 Mon Sep 17 00:00:00 2001 From: Nikhil B <59918974+heftymouse@users.noreply.github.com> Date: Sat, 18 Feb 2023 00:38:43 +0530 Subject: [PATCH] Enforce tabs for Xaml in EditorConfig and Xaml Styler (#11346) --- .editorconfig | 9 ++++++++- Settings.XamlStyler | 3 +++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Settings.XamlStyler diff --git a/.editorconfig b/.editorconfig index b48eae1bbbdd..29c9293c913e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,11 @@ -[*.cs] +root = true + +[**/*.cs] indent_style = tab indent_size = 4 tab_width = 4 + +[**/*.xaml] +indent_style = tab +indent_size = 4 +tab_width = 4 \ No newline at end of file diff --git a/Settings.XamlStyler b/Settings.XamlStyler new file mode 100644 index 000000000000..117aea82adf0 --- /dev/null +++ b/Settings.XamlStyler @@ -0,0 +1,3 @@ +{ + "IndentWithTabs": true +} \ No newline at end of file