Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Brackets doesn't recognize existing indentation when auto-indenting close braces #7499

Open
core-ai-bot opened this issue Aug 30, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by redmunds
Monday Jul 14, 2014 at 21:45 GMT
Originally opened as adobe/brackets#8395


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant