VS Code, format HTML code with Twig or Swig tags
<p>Is there a way to format correctly HTML in VSCode when we use Twig or Swig tags, like </p>

<pre><code>{% if ... %} {%else%} {%endif%} {% for %} {%endfor%} {% include %}, etc...
</code></pre>

<p>For now code formatters remove all line breaks before and after those tags.</p>

<p>Was not able to find an suitable extension for that.. Neither a way to configure the internal code formatter.</p>