JetBrains Rider 2020.1 Help

Code Inspection: Use preferred style for trailing comma when last element is not followed by a new line

This code inspection checks that trailing commas in single-line declarations with multiple items and simmilar constructs (object, array, and collection initializers, as well as enums and switch expressions) conform to your code style.
Depending on your preferences, it either detects redundnt trailing commas or missing trailing commas.

The prefereces are configured on the Editor | Code Style | C# | Syntax Style page of JetBrains Rider settings Ctrl+Alt+S, under Triling comma.

Last modified: 26 May 2020