Skip to content Skip to sidebar Skip to footer

Intellisense With Third Party Javascript Libraries In Visual Studio Code

I have been playing around with Visual Studio Code today, and have been having a problem getting intellisense to work with some of the code in a JavaScript project. I had read this

Solution 1:

Yes, for now you can create a tsd.d.ts file for all of your d.ts file references. Put that in your project once, then each file can refer to that.

Or use a tsconfig.json with no files (leave it undefined).

This story will get better

Solution 2:

If it doesn't recognize the Angular module and suggest the d.ts import automatically, you can add the angularjs typings to your project manually.

http://definitelytyped.org describes how to import the typings into your project. I'd recommend TypeScript Definition manager as it keeps the reference comments in you code files succinct.

Post a Comment for "Intellisense With Third Party Javascript Libraries In Visual Studio Code"