Home > Development Tools > VSCode > body text

How to automatically complete tags in vscode

王林
Release: 2020-03-13 16:40:18
Original
4673 people have browsed it

How to automatically complete tags in vscode

1. Install the plug-in

How to automatically complete tags in vscode

(Recommended learning video: java learning video)

2. Configure files.associations object

How to automatically complete tags in vscode

Find "files.associations" in the Comm Used list: {}

How to automatically complete tags in vscode

Click the edit button on the left and edit in the edit box on the right. It turns out to be

{    "emmet.triggerExpansionOnTab": true}
Copy after login

Add a line

{    "emmet.triggerExpansionOnTab": true,    "files.associations": {"*.js": "html"}
}
Copy after login

Similarly, make changes in Workspace settings

It turns out Yes

{    "workbench.editor.closeEmptyGroups": false,    "emmet.triggerExpansionOnTab": true}
Copy after login

Add a line

{    "workbench.editor.closeEmptyGroups": false,    "emmet.triggerExpansionOnTab": true,    "files.associations": {"*.js": "html"}
}
Copy after login

After saving, go back to the js file, hit the

tag, auto-complete, and the code will take effect.

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template