Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of html tag Code completion set by vscode

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about vscode setting html tag code completion method, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.

1. Install the plug-in

2. Configure files.associations object

After opening, the page is as follows:

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.

Add a row

Similarly, changes are also made in Workspace settings, which turns out to be

Add

After saving, go back to the js file, tag it, automatically complete it, and the code takes effect.

Tips: if the file you want to complete is not a js file, but other suffixes, such as .vue files, simply add the file suffix to the list.

For example:

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

Remember to add both setting.

On "vscode set html tag code completion method" this article is shared here, 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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report