Skip to content

Order Modifiers (IDE0036) not formatting when code is preceded by a comment. #1784

@jR1P621

Description

@jR1P621

Input:

// Comment
required public int Prop1 { get; set; }

/// <summary>
/// XML Doc
/// </summary>
required public int Prop2 { get; set; }

required public int Prop3 { get; set; }

Output:

// Comment
required public int Prop1 { get; set; }

/// <summary>
/// XML Doc
/// </summary>
required public int Prop2 { get; set; }

public required int Prop3 { get; set; }

Expected behavior:

// Comment
public required int Prop1 { get; set; }

/// <summary>
/// XML Doc
/// </summary>
public required int Prop2 { get; set; }

public required int Prop3 { get; set; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions