Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Wrong automatic code indentation #11067

@cithukyaw

Description

@cithukyaw

I have a switch/case statement. The code block under a case statement has one nested level like below:

case 1:
    if ($a) foo();
    break;

I wanted to add curly braces to the if statement line. When I typed {, the code indentation was automatically moved backwards to the same level of case such

case 1:
if ($a) {
    foo();
}
    break;

Then, I had to manually fix the indentation to get it right like below:

case 1:
    if ($a) {
        foo();
    }
    break;

To get more clear picture, check the following animated gif or the original video file (if it is not broken).

code-indentation-glitch-08-05-2015-05-33-12

I'm not sure it is related to Brackets core or any particular extension. My Brackets version is 1.3.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions