Xavalon / XamlStyler

Visual Studio extension to help format your XAML source code
Apache License 2.0
1.17k stars 128 forks source link

IndentWithTabs ignored if VS is configured to use tabs #488

Open vonderheide opened 3 months ago

vonderheide commented 3 months ago

Describe the bug When Settings.XamlStyler contains "IndentWithTabs": false and Visual Studio (Options / Text Editor / XAML / Tabs) is configured to keep tabs, XamlStyler uses tabs instead of spaces.

To Reproduce Steps to reproduce the behavior:

  1. Use a Settings.XamlStyler file with "IndentWithTabs": false.
  2. Configure Visual Studio to keep tabs for XAML
  3. Format a XAML file

Expected behavior XAML file should be formatted using spaces instead of tabs, i.e. the configuration from Settings.XamlStyler should override the VS setting.

Screenshots n/a

External Configuration Default configuration, except that IndentWithTabs is false.

Version Info (please complete the following information):

Additional context The setting works as expected the other way around, i.e. "IndentWithTabs": true and VS set up to use spaces.