Skip to main content

RCS0052: Place new line after/before equals token

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
string s =
new string(' ', 4);
fix.cs
string s
= new string(' ', 4);

Configuration

info

Option roslynator_equals_token_new_line is required to be set for this analyzer to work.

.editorconfig
# Place new line after/before equals sign
roslynator_equals_token_new_line = after|before

Applies to