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.05k stars 4.03k forks source link

Code Cleanup Appears to Format Document Even Though It is Not Configured to do So #56260

Open vsfeedback opened 3 years ago

vsfeedback commented 3 years ago

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


[severity:It bothers me. A fix would be nice] Please see the following Code Cleanup configuration:

image

Note that I do not have Format document as one of the listed figures, nor do I have .editorconfig for my solution.

When I run this Profile 1, spaces are removed from my document, even though Format document is not added to the profile, and I have set all languages to the following:

image

Attaching a recording for your review. In it, I:

  1. Replace spaces with a Tab
  2. Run Code Cleanup Profile 1
  3. Observe with cursor that the Tab has become spaces.

Expected: when Code Cleanup is run, and Format document is not applied to the Profile, the Profile does not format the document.


Original Comments

Feedback Bot on 9/6/2021, 02:31 AM:

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.

Feedback Bot on 9/8/2021, 09:45 AM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.


Original Solutions

(no solutions)

Mike-E-angelo commented 3 years ago

Thank you for looking into this issue. With Preview 4.0 this seems to occur still, but instead of formatting tabs to spaces, it formats from spaces to tabs. 😅

Since I am tab-centric that works for me, but I am sure there will be space-centric users who will now object. :)