dotnet/roslyn

Uncomment Selection Auto Formats

Open

#56,267 opened on Sep 8, 2021

 (2 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEConcept-Continuous ImprovementDeveloper CommunityIDE-Formatterhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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


When you Comment out a selection of code and then un-comment the selection it applies a "Format Selection" comand on it. Which I know is NOT Roslyn doing it upon Uncomment Selection because I can hit Control+Z to "undo" the re-format.

Please DO NOT format my code

B08e9e9c1ced446d9b602c852be958fb1637664539152781753_20210905-105155-image

Beba5971b871b49e7950731728a44060f637664539958592279_20210905-105316-image

I hit Control+Z and it leaves it uncommented but un-does the "Apply format" command

Be16bc5d1661245508b3af1d3aab7f844637664540311341830_20210905-105351-image


Original Comments

Feedback Bot on 9/6/2021, 03:06 AM:

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


Original Solutions

(no solutions)

Contributor guide