When writing abbreviations, for example: a.icon-basket, you end up with something like this:

<a href="#" class="icon-basket">Корзина</a> 

Is it possible to configure Emmet so that the class = "" attribute always goes at the beginning, and then the rest?

    1 answer 1

    a.class-name[style=height:1px;] will give the result after clicking on the tab <a href="" class="class-name" style="height : 1px;"></a> .

    Emmet will write the tag attributes in the sequence you specified.

    Tested by example in PHPStom 2016.2.2

    enter image description here

    • Even if we write attributes one by one, then for some reason the order is still violated. We write: a.icon-basket [href = "#"], we get <a href="#" class="icon-basket"> </a> - Marseille
    • @Marcel, the plugin has its own add-ons on account of the build order. - Roman Kozin
    • one
      impossible to change them? - Marcel
    • @ Marcel, you can - Roman Kozin
    • do not tell me how? - Marseille