language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

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

Open cputnam-a11y opened this issue 4 months ago • 7 comments

The Vue Official Plugin Does Not Support Emmet.

cputnam-a11y avatar Mar 05 '24 22:03 cputnam-a11y

The Vue Official Plugin Does Not Support Emmet.↳

add this in settings.json, then it works

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

cannot-hero avatar Mar 11 '24 12:03 cannot-hero

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

gegoune avatar Mar 11 '24 12:03 gegoune

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.

so1ve avatar Mar 11 '24 13:03 so1ve

@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

cannot-hero avatar Mar 12 '24 03:03 cannot-hero

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

pedroprieto avatar Apr 28 '24 17:04 pedroprieto

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

cannot-hero avatar Apr 29 '24 03:04 cannot-hero

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

so1ve avatar Apr 29 '24 04:04 so1ve