1. Home /
  2. Option Reference

New Lines

Controls where Curb places line breaks around braces, else, catch, finally, and the members of object initialisers, anonymous types, and query expressions.

csharp_new_line_before_catch
Put catch on its own line. Defaults to `true`
csharp_new_line_before_else
Put else on its own line rather than joining it to the preceding brace. Defaults to `true`
csharp_new_line_before_finally
Put finally on its own line. Defaults to `true`
csharp_new_line_before_members_in_anonymous_types
Put each member of an anonymous type on its own line. Defaults to `false`
csharp_new_line_before_members_in_object_initializers
Put each member of an object initializer on its own line. Defaults to `false`
csharp_new_line_before_open_brace
Which constructs put their opening brace on a new line. Defaults to `all`
csharp_new_line_between_query_expression_clauses
Put each clause of a query expression on its own line. Defaults to `false`

No pages match your filter.

Previous
Core
Next
Indentation
  • 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