vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.76k stars 388 forks source link

Vetur Recommends using Vue Official Extension But Vue Official Extension Does Not Support Emmet. #3998

Open cputnam-a11y opened 6 months ago

cputnam-a11y commented 6 months ago

The Vue Official Plugin Does Not Support Emmet.

cannot-hero commented 6 months ago

The Vue Official Plugin Does Not Support Emmet.↳

add this in settings.json, then it works

"emmet.includeLanguages": {
    "vue-html": "html",
    "vue": "html"
}
gegoune commented 6 months ago

@cannot-hero Please confirm that this setting requires installation of additional package (which one?) and is only relevant for vscode (is it?).

so1ve commented 6 months ago

The Vue Official Plugin Does Not Support Emmet.↳

add this in settings.json, then it works

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

This is not a solution. If you do so type-checking will be lost.

cannot-hero commented 6 months ago

@cannot-hero Please confirm that this setting requires installation of additional package (which one?) and is only relevant for vscode (is it?).↳

only relevant for vscode, but as @so1ve has mentioned, the type-checking will be lost. So it just works for the emmet

pedroprieto commented 4 months ago

Hi. Is Emmet supposed to work in Emacs with Vue Official Extension? Or does it work in VS Code only?

cannot-hero commented 4 months ago

Hi. Is Emmet supposed to work in Emacs with Vue Official Extension? Or does it work in VS Code only?↳

@so1ve This contributor may know the details

so1ve commented 4 months ago

If your emacs is configured to use Volar as the language server for vue files, then it should provide emmet completions for emacs.