简体   繁体   中英

visual studio 2015 / resharper support for angular2

I have several question about vs 2015, reshaper 10 and angular 2.

  1. It exist any syntax highlighting support for html markup in ts file for visual studio 2015 or in resharper 10?

For example when I use multiline string in Component template.

@Component({
    selector: "hello-world",
    template: `
    <ul>
        <li *ngFor="#name of names">Hello {{name}}</li>
    </ul>
    `
})
  1. When I use ng2 keywords such as #inputName, (click)="add(inputName)" in html file visual studio show errors in markup . Any way how to fix this problem. It's annoying.

  2. I would like have intellisense support for ng2 in html. I tried find aby resharper plugin but without success.

I just downloaded the latest version of ReSharper 10.1 EAP and it now has support for Angular 2 annotations.

I took a screenshot from my code window. Looks much better! 在此输入图像描述

Unfortunately, it doesn't appear to support the binding tags and proper Intellisense in HTML template files yet.

Resharper version 2017.1 adds support for Angular2 templates. See here: https://www.jetbrains.com/resharper/whatsnew/#v2017-1-angular-2

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