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

How to modify the default style of html in vscode

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is about how to change the default style of html in vscode. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

1. Find the vsCode installation directory

Follow these steps to locate the expand folder and find the expand-full.js file

D:\ vscode\ anzhuang\ Microsoft VS Code\ resources\ app\ extensions\ emmet\ node_modules\ vscode-emmet-helper\ out\ expand

2. Open and use ctrl+f to find the following code

"!": "{}"

Find the following code block:

"cmd": "command", "ri:d | ri:dpr": "img:s", "ri:v | ri:viewport": "img:z", "ri:a | ri:art": "pic > src:m+img", "ri:t | ri:type": "pic > src:t+img", "!!": "{}", / / "doc": "html [lang=$ {lang}] > (head > meta [charset=$ {charset}] + meta:vp+meta:edge+title {${1:Document}) + body" "doc": "html > (head > meta [charset=$ {charset}] + title {${1:Document}}) + body", "! | html:5": "!! + doc", "c": "{}", "cc:ie": "{}", "cc:noie": "{${0}}"}

Then enter the following code:

"doc": "html > (head > meta [charset=$ {charset}] + title {${1:Document}}) + body"

3. Save and restart the software.

Create a new html file, enter! The default html format appears after + tab:

Thank you for reading! On how to modify the default style of html in vscode to share 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, you can share it and let more people see it.

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