Don't order parameters in Generate Constructor command

My class:

class ResharperTest
{
    public readonly string Value;
    public readonly DateTime Date;

    // Location of the cursor
}


Then I click Alt+Insert, select "Generate Constructor" and check both fields. This is what I get:

class ResharperTest

{

    public readonly string Value;

    public readonly DateTime Date;

    public ResharperTest(DateTime date, string value)

    {

        Date = date;

        Value = value;

    }

}

Is it possible to generate constructor so, that the parameters are in the same order as they are defined in the class itself, like this:

class ResharperTest
{
    public readonly string Value;
    public readonly DateTime Date;

    public ResharperTest(string value, DateTime date)
    {
        Value = value;
        Date = date;
    }
}

Please sign in to leave a comment.