1. Home /
  2. Option Reference

Modifiers and Braces

Controls modifier ordering (IDE0036), brace insertion for unbraced control-flow bodies (IDE0011), and conversion of block-scoped namespaces to file-scoped (IDE0161). All three are applied without a compilation.

csharp_prefer_braces
Add braces to unbraced control-flow bodies. IDE0011. Applied without a compilation. Defaults to `false`
csharp_preferred_modifier_order
Reorder modifiers to the specified preference. IDE0036. Applied without a compilation. Defaults to `(not set)`
csharp_style_namespace_declarations
Convert block namespaces to file-scoped. IDE0161. Applied without a compilation. Defaults to `(as written)`

No pages match your filter.

Previous
Usings
Next
Trailing Commas
  • 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