-
Notifications
You must be signed in to change notification settings - Fork 25
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
Is there support for Visual Studio like formatting each attribute in new line with indentation? #14
Comments
Thanks for your message. According to you, what should be the rule to wrap the attributes into the next line ? |
I am just wondering if we can format XML as above, see the first attribute is on same line as of start tag and remaining attributes aligned with first attribute? |
I will look into it if that can be done easily but I can't give you a time estimate. |
@chrisbottin I think it can be done by having a parameter on line length. E.g. above 120 character length if there are at least 2 attributes, the 2nd, 3rd, etc gets the padding of (tag's padding + tags length + 1 (opening '<') + 1 (space)) or simply just an extra padding as it would be a child element. |
Thanks for your comment @dgergely, I agree it's a good approach. I might take a look this week. |
I couldnt find this feature in any npm packages or even standard C# |
Expected:
Default
The text was updated successfully, but these errors were encountered: