Roslyn: Wrap array initializer expressions.

Created on 23 Jul 2019  路  3Comments  路  Source: dotnet/roslyn

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

4 - In Review Area-IDE Feature Request help wanted

All 3 comments

馃憤 We can also have things like "Wrap long" here to match our other features. This should not be hard to provide fwiw.

I would be interested in working on this if no one else has grabbed it.

go ahead @tokarzkj ! :)

Was this page helpful?
0 / 5 - 0 ratings