Vscode editor emmet for html not working in twig files. How to enable this feature?

Viewed 463

I'm writing html snippets in twig file and emmet for html does no action. i'm just having suggestions. and when i hit tab it not creating element

How to enable this feature?

2 Answers

I have found the solution myself: Vscode settings emmet include languages here add the key and value : for key is TWIG or any language you perform and value is HTML. VoilĂ  !!! everything works

Go setting search emmet, go include languages, press add item fill form with item:twig, value:html.

or use json settings:

"emmet.includeLanguages": {
  "twig": "html"
}
Related