2016-01-20 11 views
5

Uso atom-beautify per formattare html, ma inserisce sempre tutti gli attributi in una riga. Come posso impostare atom-beautify per mantenere gli attributi su linee diverse.Come impostare Atom-Beautify Wrap Attributo HTML

<!--What I want--> 
<a class="btn btn-default" 
    ng-click="history.more=!history.more"> 
    More 
</a> 

<!--The current format result--> 
<a class="btn btn-default" ng-click="history.more=!history.more"> 
    More 
</a> 

My current HTML config

risposta

3
html_wrap_attributes: "force" 

Sembra che il tuo config ha già Wrap attributi impostati a "forza", in modo che dovrebbe essere sufficiente. In caso contrario, è possibile eseguire il debug atom-beautify (Packages-> Atom Beautify-> Debug) per determinare le opzioni combinate e trasformate finali utilizzate per abbellire l'html.