How to set Atom-Beautify Wrap HTML attribute

I use atom-beautify to format html, but it always puts all attributes on one line. How can I configure atom-beautify to store attributes on 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

+5
source share
1 answer
 html_wrap_attributes: "force" 

It seems your configuration already has the Wrap attributes set to "force", so that should be enough. If not, you can run the atom-beautify debugger (Packages-> Atom Beautify-> Debug) to determine the final combined and converted parameters that are used to decorate your html.

+3
source

Source: https://habr.com/ru/post/1241039/


All Articles