简体   繁体   English

如何配置Intellij以识别Angular2构造函数中的注释

[英]How to config Intellij to recognize annotations inside Angular2 constructor

I am using Intellij 14.1.7, with configuration for typescript as below. 我正在使用Intellij 14.1.7,其打字稿配置如下。

Typescript configuration 打字稿配置

I have a problem that my Intellij does not recognize any parameters with annotations inside Angular2 typescript constructor. 我有一个问题,我的Intellij无法识别Angular2打字稿构造函数内部带有注释的任何参数。

Typescript constructor with annotated parameters 带注释参数的Typescript构造函数

Then, it marks the rest of the typescript .ts file with all red errors. 然后,它用所有红色错误标记typescript .ts文件的其余部分。 It is so annoying. 真烦人

Does anyone know how to configure Intellij to fix this problem? 有谁知道如何配置Intellij来解决此问题?

2014年发布的Idea 14不支持TypeScript注释,也不支持Angular2。您唯一的选择是将其更新为支持最新TypeScript和Angular功能的最新Idea版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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