Visual Studio 2008 Intellisense for jQuery 1.2.5

Download: jquery-1.2.5-intellisense.js

Yesterday's release of jQuery 1.2.4 was a bad build.  That is part of the reason it was so easy to update the intellisense comments.  There just weren't many changes from 1.2.3 to 1.2.4.  So just one day later, the jQuery team has released jQuery 1.2.5.  It looks like the full Dimensions plugin is now rolled into jQuery.  Not just four methods as in the 1.2.4 release.

I went through it, and added the XML comments for intellisense.  Again, WinMerge made this relatively painless.  If you use it, get to know the alt-arrow key shortcuts: 

  • alt-down navigates to the next difference
  • alt-up navigates to the previous difference
  • alt-right moves the content on the left to the right
  • alt-left moves the content on the right to the left.

There are some new functions, and some of the old ones that were not working with intellisense are now fixed.  You should get intellisense on every function.  Some of these are pretty large since the intellisense hint needs to apply to several functions.  For instance, if you pull up the appendTo() hint, you'll see that it covers five functions.  That is because all these functions share the same code in the jQuery library.

You might also be interested in trying out Brennan Stehling's or James Hart's jQuery intellisense stubs.  They are different than this implementation in that they are not working jQuery JavaScript files.  They are built with function stubs to enable intellisense in Visual Studio, but your pages use the actual jQuery JavaScript.  What I've published here is the full jQuery 1.2.5 source code with the XML comments added in.  It should behave exactly as jQuery does.  You will probably want to deploy the minimized version of jQuery rather than this to save on bandwidth and page load times.

I'm still not sure whether a full copy of the library or the stub approach is better.  There are advantages of both.  What do you think?  Also, what do you think of moving this to a CodePlex project?

Let me know if you run into any problems with this release.  I'll try and fix it and update this post.  Good luck!