Is there an option in ReSharper not to remove the empty string that I set between the namespace and the class definition?

Each time I allow ReSharper to format my code, it removes the empty string that I put between the namespace and the class declaration.

From this:

namespace Test {

  public class Test {

For this:

namespace Test {
  public class Test {

It does the same with empty lines in closing brackets of both. All my "empty line" settings are set to 1, except for the fields of one line.

Is there an option that I am missing?

+5
source share
2 answers

Fsck, just 10 minutes ahead of me. Well, I will answer anyway. The bad news is that this is a long-term feature request http://youtrack.jetbrains.com/issue/RSRP-74903

, ​​ 7.1 EAP. ReSharper | Options -> Code Editing | C# | Formatting style | Blank Lines:

  • Remove blank lines after "{" and before "}" in declarations ( , ReSharper)
  • Around namespace Around type ( , ReSharper ).
0

( 2016 ). ReSharper | Options -> Code Editing | C# | Formatting style | Other Line feed at end of file.

+9

All Articles