简体   繁体   中英

Webstorm template string html format with Angular 2

In the WebStorm 2016.1 release notes they have this image.

在此输入图像描述

See here

But when I try to type this mine looks like this

在此输入图像描述

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?

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".

在此输入图像描述

I'm using the latest version of WebStorm 2016.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM