You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may not be a problem and might just be me. Open a large .cshtml file (try the one I link to below) and select everything.
Press Shift + Tab several times to collapse all the hierarchy and mess up its formatting.
Now Format the file
Notice that the file formats weird as pictured below (maybe it's just my file).
Original file before I used Shift+Tab several times
After format
What's with the white space in the middle of the code? Maybe this file uses spaces, maybe it has mixed tabs and spaces and this had something to do with it?
Notice how some of the tags that are nested are all linline still. I would expect a more opinionated format of nesting these more in a block way.
Please feel free to close if it's just me :)
The text was updated successfully, but these errors were encountered:
We're using JSBeautify to format html. JSBeautify has the concept of tags that should not be formatted, as making any change to the content of these tags potentially results in differently rendered html.
This list of tags that should not be formatted is listed in the default settings and can also be changed there: "html.format.unformatted": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, script, select, small, span, strong, sub, sup, textarea, tt, var"
But that's IMO what you see in your example.
From what I see there hasn't been any changes due to moving Razor to an extension, so this is not a regression.
Regarding test item #12100
Steps to Reproduce:
Original file before I used Shift+Tab several times
After format
What's with the white space in the middle of the code? Maybe this file uses spaces, maybe it has mixed tabs and spaces and this had something to do with it?
Notice how some of the tags that are nested are all linline still. I would expect a more opinionated format of nesting these more in a block way.
Please feel free to close if it's just me :)
The text was updated successfully, but these errors were encountered: