danny36
danny36

Reputation: 131

PhpStorm syntax problem with Angular project

I have a problem with Angular project and syntax of TypeScript, I make a new empty Angular project but PhpStorm (2019.2.1) don't recognize TypeScript syntax.

enter image description here

Upvotes: 2

Views: 515

Answers (2)

lena
lena

Reputation: 93728

Looks like the .ts extension is assigned to XML file type in Settings | Editor | File Types. Please remove all .ts patterns from this file type and make sure that *.ts is listed among patterns registered for TypeScript:

enter image description here

Upvotes: 1

Yash
Yash

Reputation: 3576

For Angular and other JS,TS based Web development I recommend using :

  • Webstorm , it's by Jetbrains, same as PHPStorm
  • Visual Studio Code

However, if you follow these steps, you should not face such issue:

https://www.jetbrains.com/help/phpstorm/angular.html

Also, as in comments by LazyOne: PhpStorm syntax problem with Angular project

Upvotes: 0

Related Questions