I'm looking for a VS Code extension which help me autocomplete my HTML tag in twig files.
I would like to write "h1", then press enter and get:
<h1></h1>
For now I installed thoses extensions: "Symfony code snippets And Twig Support & Yaml", "Twig", "Twig Language 2", "Twig Language", but it didn't work. Can someone recommend me one?
I also don't have autocompletion if I'm trying to write for example:
{% for message in app.session.flashBag.get('info') %}
Go to your VSCode Settings
, in the User
tab, click Extensions
, then Emmet
.
Now, all you have to do is add an item in Include languages
.
Item
: twig
Value
: html