Trailling commas in object/list initializers and enums in C # #39828
Labels
Area-IDE
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
Feature Request
IDE-CodeStyle
Built-in analyzers, fixes, and refactorings
Need Design Review
The end user experience design needs to be reviewed and approved.
Milestone
This issue has been moved from a ticket on Developer Community.
It would be nice if IDE could be set up to remind to add trailing commas to object and list initializers and enums (and wherever else possible), so that subsequent changes that would add items to the existing lists wouldn't have to touch the existing lines making diffs cleaner.
I.e. for a code like:
it would be nice to have an optional suggestion to add a comma after
Two
. So that when aThree
is added to a list, the diff would highlight only one line (since the line withTwo
would not be touched).Original Comments
Visual Studio Feedback System on 11/13/2019, 11:22 PM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
The text was updated successfully, but these errors were encountered: