Add jQuery Intellisense to Visual Studio

Visual Studio 2010 has built in support for –vsdoc files, which add Intellisense support for javascript libraries.  This is a great feature and is suprisingly easy to get set up.

Setting up jQuery Intellisense

Prerequisite for Visual Studio 2008 users

If you’re using Visual Studio 2008, make sure you’re as SP1 and install this patch to enable vsdoc support.

Step 1

Download the most recent vsdoc file.

jQuery makes these files available right from their jQuery download page.

Look for the DOCUMENTATION: Visual Studio link below each of the major jQuery releases:

image

Here is a direct link to the –vsdoc file for jQuery 1.4.1: 1.4.1 vsdoc file

Step 2

All you need to do next is include the –vsdoc file in your project.

image

That’s all you need to do.  You do not need to include the –vsdoc.js file in a script tag!

Once you have your –vsdoc.js file in your scripts folder, you should have full intellisense for jQuery in your project!

image

This entry was posted in 0-Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*