Enable whitespaces at the beginning and end of an Angular2+ HTML template variable
The TSLint rule:
"angular-whitespace": [
true,
"check-interpolation",
"check-semicolon"
],
Requires one whitespace before and one after an Angular HTML variable.
<p>{{wrong}}</p>
<p>{{ right }}</p>
How can I tell Webstorm to format my code with these whitespaces?
Please sign in to leave a comment.
this should be controlled by Preferences | Editor | Code Style | TypeScript | Spaces, Other/Within interpolation expressions. But it doesn't work currently:( Please follow https://youtrack.jetbrains.com/issue/WEB-31573 for updates