Home >Development Tools >VSCode >How to quickly complete div tags in vscode

How to quickly complete div tags in vscode

王林
王林Original
2019-12-31 13:24:555433browse

How to quickly complete div tags in vscode

1. First install the plug-in

How to quickly complete div tags in vscode

2. Configure the files.associations object

How to quickly complete div tags in vscode

After opening, it will look like this:

How to quickly complete div tags in vscode

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

How to quickly complete div tags in vscode

Click the edit button on the left and edit in the edit box on the right. The result is as shown in the figure:

How to quickly complete div tags in vscode

Similarly, do the same in Workspace settings Change, as shown in the figure below:

How to quickly complete div tags in vscode

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

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

Tip: If the file you want to complete is not a js file, but has other suffixes, such as .vue files, just add the file suffix to the end of the list.

For example:

{
    "emmet.triggerExpansionOnTab": true,
    "files.associations": {
        "*.js": "html",
        "*.vue": "html"
    }
}

Recommended related articles and tutorials: vscode tutorial

The above is the detailed content of How to quickly complete div tags in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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