Visual Studio Intellisense for jQuery 1.4.1 is now available and can be downloaded from the jQuery site
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.
Here’s how I am using the file in a sample application:
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.
Tweet
4 comments:
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?
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
You need to install this VS 2008 hotfix to make the intellisense work:
http://code.msdn.microsoft.com/KB958502/Release/ProjectReleases.aspx?ReleaseId=1736
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/
Post a Comment