'Each time i'm alt+shift+f my comment fly off in the distance
Each time i autoindent (with alt+shift+f) my comments move to the right. Each time i autoindent, they go away more like they still need to be aline.
I'm using VSSCode and it's only when i'm on a twig file with twig comment {# (from what i aware of)
Here an exemple:
</li>
{# {% if not is_granted('IS_AUTHENTICATED_FULLY') //connexion admin caché
<li class="nav-item col-1">
<a class="nav-link" href="{{ path("app_login")}}">
connexion
</a>
</li>
<li class="nav-item col-1"> //pas de pages d'inscription pour mon site.
<a class="nav-link" href="{{ path("app_register")}}">inscription</a>
</li> #}
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
(i'm french so correct me if i make errors)
Solution 1:[1]
So i have tested each twig formatter and Prettier - Code format is the one working for me.
I don't know why there are so many twig formatter not working but "meh".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gaga |
