RoboDev
RoboDev

Reputation: 4157

VS 2008 JavaScript Intellisense Woes

I have a JavaScript class that I have made and put it into its own .js file. When I reference the the file from a web page and create an instance of that class there is no intellisense telling me the methods\variables available, it just show constructor as the only method. But when I copy the class and past it straight into the web page the intellisense works just fine.

Does any one know what the problem might be?

Upvotes: 0

Views: 564

Answers (1)

Jarek
Jarek

Reputation: 5935

You need to add reference on the top of your javascript file:

/// <reference path="yourJSfile.js" />

And then you have to refresh intellisense: Menu Edit -> intellisense -> update jscript intellisense

Upvotes: 1

Related Questions