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

Brackets cursor is not placed on a new line when creating a new tag and hitting enter. #6373

Closed
Deltanic opened this issue Jan 6, 2014 · 4 comments

Comments

@Deltanic
Copy link

Deltanic commented Jan 6, 2014

Not really a bug but it annoy's me a lot. When opening a tag and pressing enter, the cursor gets placed before the closing tag. I'd have to press enter once again and move my cursor to get the desired result.

As example, I could be typing the following, where the | character is the cursor:

<div>|</div>

The closing div was autocompleted. This is all fine. But when I hit enter, this becomes the following:

<div>
|</div>

Which is quite annoying since I'd have to press enter again, and position my cursor nicely to get my desired result:

<div>
    |
</div>

Would be great if Brackets did this automatically when pressing enter in the first code sample.

@redmunds
Copy link
Contributor

redmunds commented Jan 6, 2014

I think that the Emmet extension does this.

@RaymondLim
Copy link
Contributor

Closing as it's a dupe of #5828.

@peterflynn
Copy link
Member

@RaymondLim #5828 seems unrelated to this. Did you mean a different bug number?

@RaymondLim
Copy link
Contributor

@peterflynn Thanks for catching the incorrect issue reference. It should be #5858.

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

No branches or pull requests

4 participants