1.在配置文件(settings.json)中添加如下配置
"emmet.triggerExpansionOnTab": true,
"emmet.showAbbreviationSuggestions": true,
"emmet.showExpandedAbbreviation": "always",
"emmet.includeLanguages": {
"javascript": "html"
}
2.代码解释
emmet.triggerExpansionOnTab:启用后,按下TAB键,将展开Emmet缩写
emmet.showAbbreviationSuggestions:将可能的Emmet缩写作为建议进行显示
emmet.showExpandedAbbreviation:将展开的Emmet缩写作为建议进行显示
emmet.includeLanguages:在默认不支持 Emmet 的语言中启用 Emmet 缩写功能。在此添加该语言与受支持的语言间的映射
3.更加详细的配置方式:
转载链接:https://blog.csdn.net/coooookie/article/details/101447329