Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No IntelliSense in Visual Studio 2015 for AngularJS TypeScript

I'm building an app using ASP.NET 5 & AngularJS in TypeScript in Visual Studio 2015. However, even after installing the AngularJS Core & DefinitelyTyped TS references for AngularJS via NuGet, I still don't get IntelliSense for the AngularJS libraries.

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

I've also noticed that even though the references to AngularJS and the definition files are present, the files themselves are nowhere to be found in my solution. Does anybody know how to fix this?

Edit: I have found the solution. Read my answer if you're having the same problem.

like image 691
maxmantz Avatar asked Aug 29 '15 16:08

maxmantz


People also ask

Does TypeScript have IntelliSense?

IntelliSense shows you intelligent code completion, hover information, and signature help so that you can write code more quickly and correctly. VS Code provides IntelliSense for individual TypeScript files as well as TypeScript tsconfig.

Does VSCode support TypeScript?

Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc . You will need to install the TypeScript compiler either globally or in your workspace to transpile TypeScript source code to JavaScript ( tsc HelloWorld. ts ). You can test your install by checking the version.


1 Answers

There's an add-on for the AngularJS Intellisense:

PM> Install-Package AngularJS.Intellisense

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

There's also a known issue with Resharper blocking JS intellisense. Turn it off and see if it makes any difference.

like image 185
B.K. Avatar answered Sep 20 '22 01:09

B.K.