Improve NormalizeWhitespace
for nested fixed
/using
statements without blocks
#61518
Labels
NormalizeWhitespace
for nested fixed
/using
statements without blocks
#61518
Version Used:
Microsoft.CodeAnalysis.CSharp
version 4.2.0Steps to Reproduce:
Call
NormalizeWhitespace()
on code with nestedfixed
orusing
statements without a{ }
block between.Expected Behavior:
Output:
Actual Behavior:
Output:
Additional Notes:
With the usage of
NormalizeWhitespace
for source generators, this results in some awkwardly formatted generated code.Auto-formatting code like this in Visual Studio stacks the statements without indentation like in the expected behaviour.
The text was updated successfully, but these errors were encountered: