Friday, September 25, 2009

How to get jQuery intellisense working VS2008

I followed steps from Scottgu blog post to setup jQuery in Visual Studio 2008 but it didn't work.

While searching for the solution I found this post from MWTech

Steps from the post are:

Getting jQuery Intellisense Up & Running

1. Ensure that VS2008 SP1 is installed. (Further info)
2. Ensure that Hotfix KB958502 is installed. (Further info)
3. Install the jQuery library into your project. It'll have a filename like "jquery-1.3.2.js".
4. Install the jQuery Intellisense file into your project. It may very well have a filename like "jquery-1.3.2-vsdoc2.js" but must be renamed to be identical to the jQuery library name, plus "-vsdoc". Thus in this example, it must be renamed to "jquery-1.3.2-vsdoc.js".
5. Provide a reference to the jQuery library. There are generally two ways to do this, both of which are described below.
6. In external Javascript files a direct reference to the jQuery Intellisense file must be made. More details are provided below.


Works perfectly! Have a look at the complete post if you are having same issues.

No comments: