Skip to content

C# Dev Kit: Editing not automatically indenting 'break;' in case statements #5766

@mikadumont

Description

@mikadumont

C# Dev Kit; v0.0.516-alpha

Steps to reproduce:

  1. Add a new case statement to a switch
  2. New line
  3. Type break;
  4. Enter

Expected
The break; is intended one deeper than the case statement.

Actual
Case and break are at the same level of indentation.

Notes
If I format the document the indentation gets corrected

Example code (correctly fromatted)

    public enum MyEnum
    {
        Hello,
        World
    }

    public Foo(MyEnum My)
    {
        switch (my)
        {
            case MyEnum.Hello:

                break;
        }
    }

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions