Editorconfig Guide.e

Preserve single line blocks

EditorConfig key: csharp-preserve-single-line-blocks

Preserve single line blocks

csharp-preserve-single-line-blocks

This option controls whether blocks written on a single line should be kept on that line instead of being split.

Default value:

true

Possible values:

  • true
  • false

Examples

true
public int X { get; set; }
false
public int X { 
  get; set;
}