Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Set Atom-Beautify Wrap HTML Attribute

I use atom-beautify to format html,but it allways put all the attributes in one line. How can I set atom-beautify to keep attributes in different lines.

<!--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

like image 825
Patato Avatar asked Jan 20 '16 15:01

Patato


1 Answers

html_wrap_attributes: "force"

It appears your config already has Wrap attributes set to "force", so that should be enough. If not, you can run the atom-beautify debug (Packages->Atom Beautify->Debug) to determine the final combined and transformed options that are used to beautify your html.

like image 83
antibrian Avatar answered Nov 03 '22 00:11

antibrian