This is a slightly complicated answer, but it’s not entirely the autocomplete feature at fault. If you look at the input, you’ll see that the entries in the popup have very different icons. The green arrow indicates that the suggested entry is a snippet. Specifically, it’s this snippet, and you see it because the core package
autocomplete-snippets adds snippets to the suggestions. However, the snippets feature isn’t very smart, so the second part of that document nullifies all of the tag snippets when the cursor is inside a tag. This keeps you from accidentally getting something like
<a <title></title>></a>. If you try adding two spaces or a new line in between the tags so that they aren’t touching the cursor, you will find that the snippet works again. You can see why this is if you open the Command Palette (ctrl-p) and use the command “Editor: Log Cursor Scope” (you can get there fastest by typing “sco” into the search bar). You should see something like this:
Since the cursor is adjacent to the tag’s bracket, Atom can’t tell that it’s not inside the tag. I don’t know if this is a limitation of how Atom was designed, or if it can be fixed.
What autocomplete packages do you have installed? Do you use