dotnet/roslyn

VS2017: Undesired reformatting when uncommenting a section

オープン

#29,647 opened on 2018/09/03

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEDeveloper CommunityIDE-Formatterhelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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.

コントリビューターガイド