Vue.js VSCode Vetur Emmet and Scaffold Snippets not recognized

Viewed 9085

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?

3 Answers

Just type vue instead of scaffold:

enter image description here

See the final result:

enter image description here

following configurations,then, restart vscode, it will work

{
    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": { 
        "vue-html": "html",    
        "vue": "html"  
    }
}
Related