I have the following block in a file app.component.ts:
@Component({
selector: 'my-app',
template: `
<h1>{{title}}</h1>
<h2>My Heroes</h2>
<ul class="heroes">
<li>
</li>
</ul>
<h2>{{hero.name}} details!</h2>
<div><label>id: </label>{{hero.id}}</div>
<div>
<label>name: </label>
<input [(ngModel)]="hero.name" placeholder="name">
</div>
`
})
How can I tell WebStorm to prefix my JS as well as the HTML that is inside quotes?
I already tried: Code > Auto-indent LinesandCode > Reformat Code
I am using WebStorm 2016.3
source
share