vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

Emmet not working in pug template #957

Open nereuseng opened 5 years ago

nereuseng commented 5 years ago

Info

Problem

Emmet was broken in template when using pug, It working again after switch to html language.

image

image

Reproducible Case

New install of VSCode. Install Vetur. Emmet will not work within template tags of .vue file when using pug.

nereuseng commented 5 years ago

I found a workaround method, add these to settings.json :

"emmet.includeLanguages": {
        "vue": "jade"
},

It will add Emmet support to *.vue file, but will add Emmet in global vue file, not just template tag only.

octref commented 5 years ago

I never realized it's possible to use emmet with bug. This is a fair feature request.

nereuseng commented 5 years ago

Please forgive my unobservant. I didn't read through doc. Is that possible to support pug in *.vue file?

octref commented 5 years ago

@nereuseng For now you only get syntax highlighting, but nothing else.

ewen-lbh commented 5 years ago

@octref Is this part of the 1.0 roadmap?

yoyoys commented 4 years ago

@octref

I think this is available now.

wolfter12 commented 4 years ago

I had the same problem. Here is a working solution that solved this problem for me: "emmet.includeLanguages": { "jade": "html" },

BassOfBass commented 3 years ago

So is there a way to enable emmet for .vue files? @wolfter12 advice doesn't work for me and assigning jade to entirety of .vue is too much.

nickeledfox commented 3 years ago

settings.json "emmet.includeLanguages": { "pug": "pug" } or { "pug": "jade" }