ASP.NET and jQuery
It looks like many of you have already noticed that there's an official Visual Studio autocomplete file for jQuery posted up at the jQuery site. It's significant that it's hosted by the jQuery team in that it's a contribution by the Visual Studio team but it's not up at CodePlex, because it really belongs to jQuery so there's where you'll find it.
This isn't a new jQuery file and nothing's been "forked" so don't freak out. It's just a documentation file, as you can see if you go to the Download jQuery page.
Now, the Visual Studio-specific aspect of this is a temporary thing, as it's planned for Visual Studio to support a more standard syntax at some future date, but until then, there's this file and we'll make sure it's kept updated.
Jeff King has details on how to use this file in your projects. In the VERY near future there will be a hotfix that will cause Visual Studio to look for files that end in "-vsdoc.js" for intellisense which will make including it in your project automatic.
UPDATE: The very near future is NOW. You can now download a small hotfix that causes Visual Studio to automatically look for intellisense files named *-vsdoc.js" next to the runtime file. From Jeff King's blog:
Last week I mentioned we would be releasing a Hotfix to accompany our new jQuery VSDoc file. This Hotfix is now available at the MSDN Code Gallery. Here's a direct download link for this small (2MB) patch:
- mylibrary-vsdoc.js, then if we don't find it we will search for...
- mylibrary.debug.js, then if we don't find it we will search for...
There's a few things that are nice about this jQuery file is that it supports and understands jQuery plug-ins. If you're into jQuery and ASP.NET, go check it out.
- Stephen Walther's ASP.NET and jQuery presentation at PDC
- jQuery IntelliSense documentation file available
- Rich IntelliSense for jQuery
- jQuery to ship with ASP.NET MVC and Visual Studio