Skip to content

Wrap array initializer expressions. #37428

@JohanLarsson

Description

@JohanLarsson

Before:

var xs = new[] [|{ 1, 2, 3, 4 }|];

After:

var xs = new[]
{
    1,
    2, 
    3,
    4,
};

Would be nice if there was a refactoring Wrap every expression similar to Wrap every argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    4 - In ReviewA fix for the issue is submitted for review.Area-IDEFeature Requesthelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions