roslyn: C# code not correctly indented
Reformatting the file doesn’t correctly re-indent the second .Foo (); line.
using System;
namespace SwitchvoxSoftphone
{
public class SampleClass
{
public SampleClass()
{
this.Foo()
.Foo();
}
SampleClass Foo()
{
}
}
}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 18 (9 by maintainers)
It’s by design that things are working this way. The potential solution for people is to write their own extension for this. Alternatively, you could help contribute toward #31691.
That’s horrifying. Formatting has to fix the formatting; that’s fundamentally what it does. Leaving random indentation means you’re not a formatter. You’re, hmm, a vague kind of suggester that sometimes does a thing?