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.



Will you give this article a +1 ? Thanks in advance


About The Author

Suprotim Agarwal
Suprotim Agarwal, ASP.NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.

Suprotim is also the founder and primary contributor to DevCurry, DotNetCurry and SQLServerCurry. He is the Editor of a Developer Magazine called DNC Magazine. He has also written two EBooks 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

Googled 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 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/