Skip to content Skip to sidebar Skip to footer

Webstorm: How To Prettify Html In Quotes Within A Javascript File

I have the following block in my app.component.ts file: @Component({ selector: 'my-app', template: `

{{title}}

My Heroes&

Solution 1:

You can use Edit Angular2HTML Fragment intention:

enter image description here

To bring it up, just click Ctrl+Enter on the string. It will open editor, where you can prettify code and the changes will be reflected in the string.

Post a Comment for "Webstorm: How To Prettify Html In Quotes Within A Javascript File"