需要在setting.json中添加配置
首先进入设置,然后点击右上角
vscode开启emmet语法-LMLPHP
Vue项目添加如下配置

"emmet.syntaxProfiles": { "vue-html": "html", "vue": "html" },

React项目添加如下配置

 "emmet.includeLanguages": {
      "javascript": "javascriptreact"
  },

开启后即可使用Emmet语法

10-31 02:14