Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndentWithTabs ignored if VS is configured to use tabs #488

Open
vonderheide opened this issue May 21, 2024 · 0 comments
Open

IndentWithTabs ignored if VS is configured to use tabs #488

vonderheide opened this issue May 21, 2024 · 0 comments
Labels

Comments

@vonderheide
Copy link

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):

  • OS: Windows 10 (22H2)
  • Visual Studio: VS2022 (17.9.6)
  • XAML Styler: Extension (3.2404.2)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant