WebStorm: How to prettify HTML in quotes within a JavaScript file

前端 未结 1 1109
你的背包
你的背包 2021-01-19 04:49

I have the following block in my app.component.ts file:

    @Component({
    selector: \'my-app\',
    template: `
        

{{title}}&l

1条回答
  •  野的像风
    2021-01-19 05:53

    You can use Edit Angular2HTML Fragment intention:

    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.

    0 讨论(0)
提交回复
热议问题