Typescript 1.4: Wrong syntax highlighting in Visual Studio

前端 未结 3 1468
我在风中等你
我在风中等你 2020-12-20 11:40

Typescript 1.4 has been released recently, providing new possibilities like unions.

I installed the new version for Visual Studio, however the syntax highlighting do

3条回答
  •  [愿得一人]
    2020-12-20 12:13

    Rather than turning off Resharper, you could configure it to ignore analysing errors in *.ts files. (Tools -> Options -> Resharper Options -> Code Inspection -> Settings -> File Masks to Skip -> add *.ts)

    This way you still benefit from using Resharper for other files, and you also get the benefits of code formatting and the like for TypeScript using Resharper.

提交回复
热议问题