Thursday, December 18, 2008

VS2008 Intellisense for jQuery

If you use jQuery for your Javascript development needs, you can get Visual Studio to auto-complete stuff for you. All you need to do is download the -vsdoc.js file from
and add it to your project, followed be adding a reference to it from your file.

To add a reference from an ASPX file, add a
<% if (false) { %>
<script src="jquery-1.2.6-vsdoc.js" type="text/javascript"></script>
<% } %>

To add a reference from a JS file, add a
/// <reference path="jquery-1.2.6-vsdoc.js" />

You can find more about the jQuery intellisense here

No comments: