dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.02k stars 4.03k forks source link

Align `for` clauses #43119

Open 333fred opened 4 years ago

333fred commented 4 years ago

The indenter should recognize and align for statement parts. Current behavior:

for (int i = 0;
    i < 10;
    i++)
{}
allisonchou commented 4 years ago

Notes from today's design meeting (4/13): We plan to take the suggestion to align 'for' clauses. For tab users, spaces will be used for alignment and tabs for indentation.