Hitting enter on auto-selected HTML opening tag does nothing

Hitting enter on auto-selected HTML opening tag does nothing
0

#1

It only works on a closing tag… so if I type <li, a drop-down will appear showing li auto-selected, and hitting Enter (in Windows) does nothing but remove the drop-down list.

If I finish the opening tag, then start typing the closing tag like </li, it also shows the suggestions drop-down, but clicking the auto-selected /li and hitting Enter actually prints the whole closing tag.

image


#2

That’s how Monaco Editor (by Microsoft) works and Freecodecamp is only integrating it.

It would’ve been great if they’ve added emmet just like in codepen.io.

But after all, it’s okay, writing everything while learning is a good practice.


#3

That’s because you’ve already typed the whole tag name.