VS 2008 JavaScript Intellisense Woes

I have a JavaScript class that I created and put it in my .js file. When I link to a file from a web page and instantiate this class, there is no intellisense telling me the methods \ variables available, it just shows the constructor as the only method. But when I copy the class and pass it straight to the webpage, intellisense works fine.

Does anyone know what the problem is?

0


source to share


1 answer


You need to add a link at the top of your javascript file:

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



And then you need to update intellisense: Edit menu -> intellisense -> update jscript intellisense

+1


source







All Articles