-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap align html attributes only when line reaches certain length #1262
Comments
See #1125 for related discussion. Not exactly the same feature, but related. |
Is this getting implemented? It's very annoying when the following: becomes:
Even though there's plenty of space to keep it in one line |
@RenaldasK |
+1, this is exactly how we would expect the behavior to work |
I might take a look it this weekend. Should this be implemented under |
I was thinking an option for something like a "number of attributes before wrapping" would be nice, so I could say, anything with < 4 attributes won't be wrapped, while anything >= 4 attributes would be wrapped, and that would be configurable per user, of course. |
@Adondriel This is tricky. One attribute could be just 3-5 characters long, another one can be 50 chars. Wrapping by default should deal with lengths, not with number of attributes, but it is an interesting additional option to consider... |
Is it possible to only wrap html attributes when line reaches certain length of characters. The way it works in Phpstorm for example is that If I have something like this.
Phpstorm formatter does not wrap the attributes but if my code looks something like this
and line contains more then 100 characters then it will wrap the attributes and align them like so
The text was updated successfully, but these errors were encountered: