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?

0
1 comment

this should be controlled by Preferences | Editor | Code Style | TypeScript | SpacesOther/Within interpolation expressions. But it doesn't work currently:( Please follow https://youtrack.jetbrains.com/issue/WEB-31573 for updates

1

Please sign in to leave a comment.