I already have emmet installed VS Code Twig Language 2
but apparently the shortcuts don't work. I have tried with:
'div>*2'
by doing a test and it does not work.
I have tried "div.html>.twig"
as this page says:
https://community.c9.io/t/emmet-not-working-in-html-twig-templates/23087 and hit tab twice and nothing...
In the Visual Studio options modify the attribute
emmet.includeLanguages
:You could force VSCode to recognize the extension
.html.twig
as pure html, which would give you immediate access to emmet, I did a test and that's how emmet worked for me. If you agree with this option you have to enterPreferences: Open Setting (JSON)
With the commandCtrl + Shift + P
, once you enter the JSON file you search if you have the property"files.associations"
, if you have it you add it"*.html.twig": "html"
, if not you have it, add the complete property like this: