All rules
IDE2000Language rules (new-line preferences)
Avoid multiple blank lines
Avoid multiple blank lines
Microsoft docsDescription
This style rule flags the presence of multiple consecutive blank lines in source code. Having multiple blank lines can reduce code readability and is generally considered poor formatting practice.
Examples
Avoid
// dotnet_style_allow_multiple_blank_lines_experimental = true
if (true)
{
DoWork();
}
return; Prefer
// dotnet_style_allow_multiple_blank_lines_experimental = false
if (true)
{
DoWork();
}
return;Configurable options
Vote for the value each option should take in the generated .editorconfig.
dotnet_style_allow_multiple_blank_lines_experimental default:
trueYour vote
Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0