I recently had some headaches with regards to getting jQuery intellisense working properly within Visual Studio 2008 (sp1). If I included the "jquery-1.3.2-vsdoc2.js" file in my page directly, intellisense worked great. However, as reported elsewhere in other blogs, you're suppose to only need the "*-vsdoc.js" file in the same folder, and Visual Studio 'automagically' knows it's there and provides the intellisense. Not so for me, at least at first (read on). Then, to add more frustration to the mix, when I would add in the UI library ("jquery-ui-1.7.2.custom.min.js" in my case), then intellisense would completely stop working (for jQuery). After searching for a solution for this new problem, someone suggested that you place an empty "*-vsdoc.js" file in the same folder as the jQuery UI file. So, in my case that would be "jquery-ui-1.7.2.custom.min-vsdoc.js". Easy enough, but no joy. Did not work for me.
In the end, what finally worked was to rename the .js files to the following shorter versions:
jquery.js
jquery-vsdoc.js
jquery-ui.min.js
jquery-ui.min-vsdoc.js
Then, all worked as expected. Below is some helpful information I found on another blog - and felt that re-posting it here might be helpful to you...
----------------
As we all know, visual studio 2008 already support
JavaScript intellisense. To extend its intellisense support for jQuery,
Microsoft released a patch KB958502 for visual studio 2008 with
SP1.
Apart from providing jQuery intellisense, it will also add
intellisense support to all the JavaScript files that we add to our solution.
For example: if we have a JavaScript file called "CDvalidations.js", this new
patch will look for its corresponding XML documentation file with "-vsdoc.js"
appended to its name in the same folder to provide intellisense, in our case it
will be CDvalidations-vsdoc.js. We can
have all the documentation in XML format in these doc files which will be
displayed with the intellisense.
Download the xml documentation file for JQuery from
here. Place the file in the same
location where jQuery library is added.
To summarize the above points,
1. Download jQuery library from jQuery
official website here.
2. Install the hotfix KB958502 for your Visual studio 2008
SP1. If you don't have SP1 installed already, you can download it from here.
3. Download the jQuery doc file from here. Include this file in the same
folder where jQuery library is present.