- 1.在vs中设置搜索"emmet",
- 2. 配置settings.json
- 3.把settings.json代码换成这个,//是我添加的部分
{
"workbench.colorTheme": "Syntax Dark",
"workbench.editor.enablePreview": false,
"window.zoomLevel": 1,
"editor.formatOnSave": true,
"security.workspace.trust.untrustedFiles": "open",
"emmet.syntaxProfiles": {},
"emmet.showAbbreviationSuggestions": true,
"emmet.showExpandedAbbreviation": "always",
"emmet.useInlineCompletions": true,
"emmet.triggerExpansionOnTab": true,
//"files.associations": {
// ".ejs": "html",
// ".js": "html",
// "*.vue": "html"
// },
// "emmet.includeLanguages": {
// "vue-html": "html",
// "vue": "html",
// "javascript": "html"
// },
}
4,重启一下vs,