dotnet/roslyn

VS2017: Undesired reformatting when uncommenting a section

Offen

#29.647 geöffnet am 03.09.2018

 (9 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEDeveloper CommunityIDE-Formatterhelp wanted

Repository-Metriken

Stars
 (20.414 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

I'm working in C# and I have a line of code like this:

foo( a, b );

I decide to comment it, using the toolbar button or CTRL-K, CTRL-C. It becomes:

//foo( a, b );

Then I want to revert the operation, using the opposite function. VisualStudio decides that removing the comment marker is not enough, and the line becomes:

foo(a, b);

Please do NOT reformat my code without my consent, ever!

This issue has been moved from https://developercommunity.visualstudio.com/content/problem/324827/vs2017-undesired-reformatting-when-uncommenting-a.html VSTS ticketId: 674251 These are the original issue comments: (no comments) These are the original issue solutions:

Jinu Joseph [MSFT] solved on 9/3/2018, 04:16 AM (4 hours ago), 0 votes: Thank you for your feedback! This issue appears to be identical to https://github.com/dotnet/roslyn/issues/29482 We recommend that you vote on and follow the earlier reported issue for updates and fix notifications.

Contributor Guide