atom-bootstrap3 icon indicating copy to clipboard operation
atom-bootstrap3 copied to clipboard

ENTER inserts new line instead of selecting autocomplete suggestion in a tags

Open maxigaz opened this issue 9 years ago • 3 comments

Let's say for example that I'm in an HTML file and I want to specify classes of an a tag, so the cursor is between the quotation marks:

<a class=""></a>

Now, the problem is that when I start typing the name of a Bootstrap class, like btn, the autosuggestion menu comes up and then hit ENTER, a new line is inserted rather than the class name is autocompleted.

I don't have this problem with div tags at all though.

maxigaz avatar Jun 25 '15 10:06 maxigaz

If you have emmet installed, goto Emmet settings and turn off, "Format Line Breaks".

nirmalrodrigo avatar Jun 26 '15 14:06 nirmalrodrigo

That solved it. Thank you!

I wonder what that setting does.

maxigaz avatar Jun 26 '15 14:06 maxigaz

Well, I've just found out what it does: when it's on, it inserts a new extra line and a tab when the cursor is between an opening and closing html tag with nothing between the two, which I find very useful.

Unfortunately, if I disable it, it will make things too complicated for me, so this is not the ultimate solution for me right now.

maxigaz avatar Jun 26 '15 20:06 maxigaz