Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailling commas in object/list initializers and enums in C # #39828

Closed
vsfeedback opened this issue Nov 14, 2019 · 2 comments
Closed

Trailling commas in object/list initializers and enums in C # #39828

vsfeedback opened this issue Nov 14, 2019 · 2 comments
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

Comments

@vsfeedback
Copy link

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:

enum Something
{
    One,
    Two
}

it would be nice to have an optional suggestion to add a comma after Two. So that when a Three is added to a list, the diff would highlight only one line (since the line with Two 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.

@sharwell sharwell added Area-IDE Feature Request IDE-CodeStyle Built-in analyzers, fixes, and refactorings Need Design Review The end user experience design needs to be reviewed and approved. labels Nov 14, 2019
@sharwell sharwell added the Developer Community The issue was originally reported on https://developercommunity.visualstudio.com label Nov 21, 2019
@jinujoseph jinujoseph added this to the Backlog milestone Dec 4, 2019
@heaths
Copy link

heaths commented Aug 1, 2020

Is this a dup of #25206 or does IDE support require explicit implementation besides .editorconfig support?

@jmarolf
Copy link
Contributor

jmarolf commented Aug 2, 2020

it should not. I think this is a dupe

@jmarolf jmarolf closed this as completed Aug 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

5 participants