dotnet/roslyn

C# - .editorconfig option for force trailing comma

开放

#25,206 创建于 2018年3月4日

 (28 条评论) (78 个反应) (1 位负责人)C# (4,257 个派生)batch import
Area-IDEhelp wanted

仓库指标

星标
 (20,414 个星标)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 256 个 PR)

描述

Version Used: 15.5.5

Steps to Reproduce:

enum Some {
   First,
   Second
}

Expected Behavior: I have an .editorconfig option to force developer to add comma after Second. It's useful, because it allows easy copy/paste and reordering member, and most important, when somebody else will add Third member, line with "Second" won't be changed and won't appear in comparsions.

Actual Behavior: I have no way to force to add trailing comma.

P.S. Sorry for my English not being 100% sharp.

贡献者指南