No IntelliSense in Visual Studio 2015 for AngularJS TypeScript

I am building an application using ASP.NET 5 and AngularJS in TypeScript in Visual Studio 2015. However, even after setting up the AngularJS Core and DefinitelyTyped TS links for AngularJS via NuGet, I still do not get IntelliSense for the AngularJS library.

I also use the ReSharper 9.1 AngularJS extension, which gives me IntelliSense in HTML files, but not in my TypeScript code.

I also noticed that although links to AngularJS and definition files are present, the files themselves were not found anywhere in my solution. Does anyone know how to fix this?

Edit: I found a solution. Read my answer if you have the same problem.

+5
source share
2 answers

I found a solution to my problem using the DefinitelyTyped Definition Manager: http://definitelytyped.org/tsd/

I installed tsd globally using NPM:

npm install -g tsd 

then using the command line in the root folder of my solution, I installed the definitions of type AngularJS by entering the following command:

 tsd install angular 

He automatically uploaded the type definitions to a folder named "typings / angularjs", and IntelliSense began to work as intended.

I can also confirm that, using this approach, AngularJS core NuGet packages or certain definitions are not required, and ReSharper does not block IntelliSense.

UPDATE:

It seems that TSD is already outdated and replaced with a standard design . It also integrates well with TSD and has specific options for TSD users. While TSD is still working fine, keep in mind that TSD will no longer be supported in the future.

+3
source

There is an add-on for AngularJS Intellisense:

PM> Install-Package AngularJS.Intellisense

https://www.nuget.org/packages/AngularJS.Intellisense/

There is also a known issue with Resharper JS intellisense locking. Turn it off and see if it matters.

+5
source

All Articles