Visual Studio Intellisense (vsdoc) for jQuery 1.4.1 now available

Visual Studio Intellisense for jQuery 1.4.1 is now available and can be downloaded from the jQuery site

image

I have downloaded both the jQuery 1.4.1 library and the Visual Studio Intellisense documentation for jQuery 1.4.1 and kept it in the Scripts folder.

image

Here’s how I am using the file in a sample application:

image

Observe how the documentation appears in Visual Studio 2008 after I typed $(

Note: You have to only reference the jQuery 1.4.x file in your code and do not have to reference the -vsdoc.js file. Just keep both these files in the same folder. Visual Studio automatically detects a -vsdoc.js file along with your jQuery library and parses the intellisense file instead.






About The Author

Suprotim Agarwal
Suprotim Agarwal, Developer Technologies MVP (Microsoft Most Valuable Professional) is the founder and contributor for DevCurry, DotNetCurry and SQLServerCurry. He is the Chief Editor of a Developer Magazine called DNC Magazine. He has also authored two Books - 51 Recipes using jQuery with ASP.NET Controls. and The Absolutely Awesome jQuery CookBook.

Follow him on twitter @suprotimagarwal.

4 comments:

Bijoy Matu said...

Thank you for this post. I must be doing something wrong. When I follow instructions, I get error in visual studio "Error updating JScript IntelliSense"

can you help?

Suprotim Agarwal said...

Bijoy: Since I have been asked this question a couple of times on forums, I thought of dedicating a post to it. Here it is:

Visual Studio 2008 jQuery Intellisense - Error updating JScript IntelliSense: Object doesn't support this property

bharathchandra said...

You need to install this VS 2008 hotfix to make the intellisense work:

http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736

Scott Reed said...

Nowadays if anyone is reading there's a better way of doing this via CND's check out my article http://scottreed.eu/jquery/jquery-vsdoc-support/