curb
GitHub
main 3445bb8

Deployment info

Preview build from branch main

  • PR main
  • Branch main
  • Commit 3445bb8
  • Repository nullean/curb
Theme
Contrast
Motion

Type to search.

↑ + ↓ to move Enter to open Esc to close
  • 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
    • Project and solution files
    • F# through Fantomas
    • Razor (experimental)
    • 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
    • Xml Files
    • Xml Layout
    • Razor
  • Known limitations
  • Benchmarks
    • Churn
  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, and skipped where the project compiles below C# 10. Defaults to `(as written)`

No pages match your filter.

Previous Usings Next Trailing Commas
  • View as Markdown
  • Edit this page