Home >Development Tools >VSCode >How to automatically complete tags in vscode
1. Install the plug-in
(Recommended learning video: java learning video)
2. Configure files.associations object
Find "files.associations" in the Comm Used list: {}
Click the edit button on the left and edit in the edit box on the right. It turns out to be
{ "emmet.triggerExpansionOnTab": true}
Add a line
{ "emmet.triggerExpansionOnTab": true, "files.associations": {"*.js": "html"} }
Similarly, make changes in Workspace settings
It turns out Yes
{ "workbench.editor.closeEmptyGroups": false, "emmet.triggerExpansionOnTab": true}
Add a line
{ "workbench.editor.closeEmptyGroups": false, "emmet.triggerExpansionOnTab": true, "files.associations": {"*.js": "html"} }
After saving, go back to the js file, hit the
Recommended tutorial: vscode tutorial
The above is the detailed content of How to automatically complete tags in vscode. For more information, please follow other related articles on the PHP Chinese website!