Editorconfig Guide.e

New line before catch

EditorConfig key: csharp-new-line-before-catch

New line before catch

csharp-new-line-before-catch

This option controls whether a catch clause should start on a new line.

Default value:

true

Possible values:

  • true
  • false

Examples

true
try {
  x++;
}
catch(Exception e) {
  x--;
}
false
try {
  x++;
} catch(Exception e) {
  x--;
}