Using autocomplete changes the indentation level

I noticed some time in the previous betas that the indentation level of the added code seem to be fixed to the first level whenever using some autocompletes. So actions like implementing an interface or overriding a member of a class would be affected.

Could it be adjusted to respect the current indentation level and keep it?

implementing an interface before:
// Define other methods and classes here
class Foo : INamedObject
{
}

interface INamedObject
{
string Name { get; }
}
after:
    // Define other methods and classes here
class Foo : INamedObject
{
public string Name => throw new NotImplementedException();
}

interface INamedObject
{
string Name { get; }
}
Overriding a member before:
            // Define other methods and classes here
class Bar : Foo
{
override
}

class Foo : INamedObject
{
public virtual string Name => throw new NotImplementedException();
}
after:
            // Define other methods and classes here
class Bar : Foo
{
public override string Name => base.Name;
}

class Foo : INamedObject
{
public virtual string Name => throw new NotImplementedException();
}
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!