taylorstine
taylorstine

Reputation: 925

Webstorm template string html format with Angular 2

In the WebStorm 2016.1 release notes they have this image.

enter image description here

See here

But when I try to type this mine looks like this

enter image description here

Do I have to manually enter the tabs to make this happen? Shouldn't it auto format? If so, how do I set up auto formatting?

Upvotes: 4

Views: 1903

Answers (1)

John McCann
John McCann

Reputation: 597

You can use the Angular2HTML Fragment editor. With your cursor positioned inside your inline template, you should see an orange exclamation popup. In this should be an option to "Edit Angular2HTML Fragment".

enter image description here

I'm using the latest version of WebStorm 2016.1

Upvotes: 4

Related Questions