dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.09k stars 4.04k forks source link

C# Tabs are always inserted instead of spaces, even if the Adaptive formatting is disabled. #49869

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

This issue has been moved from a ticket on Developer Community.


  1. Set Tools > Options > Text Editor > Advanced > Use adaptive formatting to unchecked.
  2. Set _Tools > Options > Text Editor > All Languages > Tabs to Insert Spaces.
  3. Set the bottom right of the editor window text option to SPC.

[GIF of the steps above.] (https://aka.ms/dc/file?name=B396349936237469880cc3ce4970777e2637429860461606599_vs_tabs.gif&tid=396349936237469880cc3ce4970777e2637429860461606599)

Still stuck with tabs. Bottom right of the editor window text option switches to value MIXED.

Visual Studio info: Microsoft Visual Studio Professional 2019 Version 16.7.6 VisualStudio.16.Release/16.7.6+30611.23 Microsoft .NET Framework Version 4.8.03752 Installed Version: Professional


Original Comments

Feedback Bot on 12/7/2020, 09:48 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

mavasani commented 3 years ago

Tagging @sharwell. Is this a known formatting regression?

sharwell commented 3 years ago

@mavasani Most likely scenario is .editorconfig is overriding the values.