Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to automatically complete the label by vscode

Shulou Source: shulou.com Published: 2022-06-02 16:18:05 11月05日 Update

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.

Tags: Tags articles one line more good practical code content right objects buttons plug-ins files articles knowledge references help related configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS NVidia Shulou Information MariaDB