1. Home /
  2. Option Reference

Trailing Commas

Controls whether Curb appends a trailing comma after the last element of multi-line and single-line lists.

csharp_trailing_comma_in_multiline_lists
Add a trailing comma after the last element of a list that breaks across lines. Defaults to `false`
csharp_trailing_comma_in_singleline_lists
Add a trailing comma after the last element even when the list is on one line. Defaults to `false`

No pages match your filter.

Previous
Modifiers and Braces
Next
Suppression
  • View as Markdown
  • Edit this page
  • Home

  • Why Curb
  • Getting started
    • Installation
  • Design principles
    • Conformance
    • Conformance divergences
    • Performance
    • Reflow
    • Safety
    • AI coding agents
    • Working with existing tooling
    • Syntax and semantic passes
  • Integrations
    • The build integration
    • Cleanup
    • Agent instructions
  • Why not X?
    • CSharpier
    • dotnet format
    • Rider / ReSharper
    • EditorConfig analyzers
  • Option Reference
    • Core
    • New Lines
    • Indentation
    • Spacing
    • Wrapping
    • Blank Lines
    • Expression Bodies
    • Usings
    • Modifiers and Braces
    • Trailing Commas
    • Suppression
  • Known limitations
  • Benchmarks
    • Churn