The method of html tag Code completion set by vscode
This article will explain in detail about vscode setting html tag code completion method, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.
1. Install the plug-in
2. Configure files.associations object
After opening, the page is as follows:
Find "files.associations" in the Comm Used list: {}
Click the edit button on the left and edit it in the edit box on the right.
Add a row
Similarly, changes are also made in Workspace settings, which turns out to be
Add
After saving, go back to the js file, tag it, automatically complete it, and the code takes effect.
Tips: if the file you want to complete is not a js file, but other suffixes, such as .vue files, simply add the file suffix to the list.
For example:
{"emmet.triggerExpansionOnTab": true, "files.associations": {"* .js": "html", "* .vue": "html"}}
Remember to add both setting.
On "vscode set html tag code completion method" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.