Issue
"html.format.wrapAttributes": "force-aligned"
worked perfectly, it touched tag attributes and was doing nothing to tag content (I'm writing in Angular so its perfect for me) until today. Content started to wrap in places I don't want it to wrap in, I just want it to be preserved as it is. Everywhere. "html.format.wrapLineLength": 0
isn't helping, as so html.format.contentUnformatted
doesn't (when I start to add some tags there - everything breaks). I need a solution for this.
I'm using "editor.defaultFormatter": "vscode.html-language-features"
Ternary operators are formatted from:
<span>
{{
isTrue
? 'Yes'
: 'No'
}}
</span>
To
<span>
{{
isTrue
? 'Yes'
: 'No'
}}
</span>
And yes, that's how it really is in HTML.
Solution
"html.format.templating": true,
solves this issue.
Answered By - Dmitriy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.