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.

Brackets doesn't recognize existing indentation when auto-indenting close braces #8395

@redmunds

Description

@redmunds

Start with 2 indented lines where there's an unmatched opening brace on first line and no code on second line:

    if (foo) {

Move cursor to beginning of second line (before indentation, not after) and type closing brace }.

Results:
Brackets adds indentation and then adds the brace. Original indentation is left after the closing brace!

    if (foo) {
    }    

Expected:
Resulting code should not have trailing whitespace.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions