How to set line breaking of anonymous method in Resharper?

0

Example before code cleanup:

Action a = () =>
{
    Console.WriteLine();
}

After cleanup by Resharper:

Action a = () => { Console.WriteLine(); }

But I prefer the first style, how to set Resharper to prevent it wrap the method body in the same line?

PM Extra

Posted 2019-03-30T08:12:48.577

Reputation: 1

Answers

0

I got it.

Place simple anonymous method on single line

Screenshot

PM Extra

Posted 2019-03-30T08:12:48.577

Reputation: 1