In VSCode, when I want to add an attribute to an HTML element I can start typing it and then press tab to complete the attribute name. But when I do that, it doesn't include the equals (=) symbol.
When I use Tab Complete, this is the result that I want: <div class=''>
But this is the actual result: <div class>
The same thing happens for all attributes, such as role and aria-label.
Is there a setting that I can change, or some way to create a custom setting, that will include the equals symbol and the single quotes when I Tab Complete?
Notes regarding incorrectly closing this question:
This question was incorrectly closed and cited two duplicate questions:
- Automatic double quotes after '=' in Visual Studio Code when adding attributes in html
- How to make vscode autocomplete HTML tag's attribute with single quote?
Those questions were asking how to change the setting from double quotes to single quotes. My question was about troubleshooting the reason tab completion wasn't working. I have an answer that I want to post. Please re-open my question.
Install HTML 'Snippets' Extension VSCode Extension ID: abusaidm.html-snippets
Edit: It has been deprecated.