文件-首选项-设置-扩展-Emmet-在settings.json中编辑,
插入如下代码:
"emmet.includeLanguages": {
"javascript": "javascriptreact"
}
实际样例如下:
{
"folders": [
{
"path": "D:\\Project"
}
],
"settings": {
"workbench.colorCustomizations": {
},
"emmet.excludeLanguages": [
"markdown"
],
"emmet.includeLanguages": {
"javascript": "javascriptreact"
}
}
}