We want to switch to enabling splitMultiAttrs in our projects when formatting our (X)HTML files for better readability. This is great for elements with a lot of attributes but not so great for 2-3 attributes which would easily still fit inside the same line width.
We want to switch to enabling
splitMultiAttrs
in our projects when formatting our (X)HTML files for better readability. This is great for elements with a lot of attributes but not so great for 2-3 attributes which would easily still fit inside the same line width.Example:
gets formatted to the following no matter the line width:
I would like to see an additional option to not split the attributes if they fit on the same line.
Change would probably need to be done somewhere here: https://github.com/eclipse-sourceediting/sourceediting/tree/master/web/bundles/org.eclipse.wst.html.core/src/org/eclipse/wst/html/core/internal/format