StyleCop SA1516 Code Cleanup
Perhaps I'm missing something easy but is there a setting to make the Resharper Code Cleanup add a
newline between the Get and Set of a Property? Right now it strips it out, and i cannot find a settings combination that seems to work. This single problem seems to be the only major hangup that we are having with the Code cleanup and StyleCop.
-Thanks!
Example:
//Invalid
public int Test
{
get{
//something
}
set{
//something
}
}
//Valid
public int Test
{
get{
//something
}
set{
//something
}
}
Please sign in to leave a comment.
Hello Ben,
There's no setting to add newline automatically, but turning on 'Keep existing
line breaks' option under ReSharper | Options | Languages | C# | Code Style
| Line Breaks and Wrapping should prevent ReSharper from removing that line
break. Let me know if this helps. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"