Can Resharper have special settings for listing?

I use Resharper 5.1.1 to reformat my code (clear code, Ctrl + E, Ctrl + C). I can’t get him to format his code the way I want it. I want my code to look like this:

public class Person
{
    public enum Sex {Male, Female}

    public Sex Gender { get; set; }

    public Person(Sex gender)
    {
        Gender = gender;
    }
}

My problem is with enum. Since an enumeration is a type, just as a class is a type, they are treated the same way. Therefore, the enumeration is formatted as

public enum Sex
{
    Male,
    Female
}

Curly braces of type (i.e. enum) are placed on a separate line, and elements are also placed on a separate line. For the class, this is exactly what I want. But for (simple) enumI just want them to be on the same line.

auto ( // ), auto , .

Resharper ?

Resharper, , . Feature Request. , , Resharper, .

+5
2

ReSharper, .

, ReSharper, .

+3

, .

Visual Studio 2019 Resharper 2019.1.1 (, , ) :

> ReSharper> ...> > #> > >

0

All Articles