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

Code Style for trailing commas #21784

Open
alrz opened this issue Aug 29, 2017 · 3 comments · May be fixed by #54859
Open

Code Style for trailing commas #21784

alrz opened this issue Aug 29, 2017 · 3 comments · May be fixed by #54859

Comments

@alrz
Copy link
Member

alrz commented Aug 29, 2017

  • Prefer trailing commas in multi-line syntax lists (enum declarations, object/collection initializers, etc)
  • Prefer no trailing commas
  • None (leave as-is)
@jcouv jcouv added the Area-IDE label Aug 30, 2017
@sharwell
Copy link
Member

📝 Related to (but more configurable than) StyleCop Analyzers rule SA1413.

@dpoeschl dpoeschl assigned sharwell and rchande and unassigned rchande Sep 11, 2017
@dpoeschl dpoeschl added this to the Unknown milestone Sep 11, 2017
@Youssef1313 Youssef1313 linked a pull request Jun 25, 2022 that will close this issue
5 tasks
@Youssef1313
Copy link
Member

This work is in-progress in #54859 for the other request of the same feature #25206.

However, the option isn't a tristate. It's a true/false where true means "force" trailing commas, and false means "keep as-is". Tagging @CyrusNajmabadi @sharwell for thoughts of making it tristate.

@gautelo
Copy link

gautelo commented Apr 1, 2023

@Youssef1313 Did this ever get anywhere? Came here from #25206 hoping there would be a solution. Seems you've already solved this but that you never got the feedback you wanted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants