Each time i'm alt+shift+f my comment fly off in the distance

88 Views Asked by At

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)

1

There are 1 best solutions below

0
Gaga On

So i have tested each twig formatter and Prettier - Code format is the one working for me for the moment but i'm not satisfied: no control over how to format.

I don't know why there are so many twig formatter not working but "meh".