2016-01-20 41 views
5

我使用atom-beautify来格式化html,但它总是将所有属性放在一行中。我如何设置原子美化来保持属性的不同行。如何设置原子美化环绕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

回答

3
html_wrap_attributes: "force" 

看来你的配置已经总结属性设置为 “力”,使应该够了。如果没有,你可以运行atom-beautify调试(Packages-> Atom Beautify-> Debug)来确定用于美化你的html的最终组合和转换选项。