Any way to remove double line breaks?

Is there any way to make Resharper remove multiple line breaks?

For instance

public void This()

{

}

[empty line]

[empty line]

public void That()

{

}

=>

public void This()

{

}

[empty line]

public void That()

{

}

I tried doing it with the new pattern catalogue, but it only searched for {space][space].

Can't find any cleanup / coding style setting for it either.

Lars-Erik

1
3 comments
Avatar
Permanently deleted user

Hello,

Is there any way to make Resharper remove multiple line breaks?


ReSharper / Options / Languages / C# / Formatting Style / Blank Lines, and
then Reformat Code?..

—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0
Avatar
Permanently deleted user

Nice, thanks!

I've been looking me blind on the line breaks and spaces sections. :S

Also, I've been stuck with the Ctrl+K, D shortcut builtin to VS, so I guess I have to get used to Ctrl+E, C.

Lars-Erik

0
Avatar
Permanently deleted user

Hello,

Also, I've been stuck with the Ctrl+K, D shortcut builtin to VS, so I
guess I have to get used to Ctrl+E, C.


I wish I knew why wouldn't we override the VS reformat action (together with
its shortcut). Probably, back then our Reformat Code was not as potent as
VS' one ...

—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.