17

I am using Vue.js on VSCode, and I installed Vetur for formatting. According to this video, there should be Scaffold snippets and Emmett code completion. None of that shows up on VSCode. When I type "scaffold" into a .vue file, there's no autocomplete. When I type "h1" into a .vue file, there's also no autocomplete. Anyone know how to solve this problem?

Andrea
  • 299
  • 1
  • 3
  • 6

3 Answers3

29

Please have a look at this https://issuehunt.io/r/vuejs/vetur/issues/1325, here they explain it's not: scaffold but vue.

Leroy Meijer
  • 1,169
  • 17
  • 40
8

Just type vue instead of scaffold:

enter image description here

See the final result:

enter image description here

Misael C. Homem
  • 121
  • 1
  • 5
6

following configurations,then, restart vscode, it will work

{
    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": { 
        "vue-html": "html",    
        "vue": "html"  
    }
}
yuanbaby
  • 61
  • 1
  • 1
  • This resolves my issue emmet suddenly stops working on on .vue files. Usually it works out of the box when you install Vetur but now I have to add this from the settings.json configuration. – SMPLYJR May 23 '22 at 02:56