How to automatically complete the label by vscode
This article will explain in detail how vscode automatically completes the tags. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
1. Install the plug-in
2. Configure files.associations object
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.
{"emmet.triggerExpansionOnTab": true}
Add a row
{"emmet.triggerExpansionOnTab": true, "files.associations": {"* .js": "html"}}
Also, make changes in Workspace settings
It was.
{"workbench.editor.closeEmptyGroups": false, "emmet.triggerExpansionOnTab": true}
Add a row
{"workbench.editor.closeEmptyGroups": false, "emmet.triggerExpansionOnTab": true, "files.associations": {"* .js": "html"}}
After saving, go back to the js file, tag it, automatically complete it, and the code takes effect.
This is the end of this article on "how to automatically fill up tags in vscode". 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.