Got these two posts on the jQuery user group. I don't have VS2008 at work so I can't attest to this. James, have you had a chance to check this out?
Saw earlier today that someone went through and commented the whole jquery.1.2.3 file so it is nice and friendly with the latest version of studio http://lancefisher.net/blog/archive/2008/02/12/intellisense-for-jquery-in-visual-studio-2008.aspx To get jQuery and intellisense working properly, there was a hotfix released the other day that makes it possible: http://blogs.msdn.com/webdevtools/archive/2008/02/08/jscript-intellisense-working-with-jquery.aspx and more info with great comments and feedback: http://www.west-wind.com/weblog/posts/251271.aspx
http://weblogs.asp.net/scottgu/archive/2008/02/08/vs-2008-web-development-hot-fix-roll-up-available.aspx For those of you who would be interested, the javascript intellisense tool in VS 2008 (which was previously not compatible with jQuery AT ALL) has been hotfixed (along with some other items). So far as I know the HotFix applies to both the Pro version and the free version (VS 2008 Web Developer). I tested it and it worked pretty well. $. pulled up a whole list of static jQuery methods and $.fn. pulled up a whole list of jQuery functions. It isn’t smart enough to do intelliense for chaining (ie. $(document). will NOT get you $.fn. intelliense), as javascript doesn’t have strongly type function returns, but it’s a start. Of course, I was personally tickled pink that an MSDN HotFix would specifically address jQuery! JK
Matt Penner |