dotnet/roslyn

C# - .editorconfig option for force trailing comma

オープン

#25,206 opened on 2018/03/04

 (28 件のコメント) (78 件のリアクション) (1 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEhelp wanted

Repository metrics

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

説明

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.

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