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?
Go to the Debug view, select the 'vuejs: chrome/firefox' configuration, then press F5 or click the green play button.
Vetur is powered by the Vue Language Server and provides us with syntax highlighting, Emmet (for increased HTML/CSS workflow), snippets, linting, IntelliSense, and more. This greatly improves our development experience and is widely supported, with over 1,000 stars on GitHub.
js App" on http://localhost:8080 in your browser. You can press Ctrl+C to stop the vue-cli-service server. cd my-app code . VS Code will launch and display your Vue application in the File Explorer.
Just type vue instead of scaffold:
See the final result:
Please have a look at this https://issuehunt.io/r/vuejs/vetur/issues/1325, here they explain it's not: scaffold
but vue
.
following configurations,then, restart vscode, it will work
{
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With