Barry
Barry

Reputation: 13

How to stop ReSharper from adding blank lines in my C# structs?

I want my structs to look like this:

struct Credentials
{
    public string Username;
    public string Password;
}

ReSharper insists on putting a blank line after the "{" and another before the "}". Is there an option I can turn off (or on) so that I can get the look I want without having to go back and delete ReSharper's blank lines?

Upvotes: 1

Views: 117

Answers (1)

Marcus
Marcus

Reputation: 8669

Go into ReSharper -> Options -> Code Editing -> C# -> Blank Lines and edit according to your preferences.

At least for R# 9+.

Upvotes: 1

Related Questions