IntelliSense for jQuery

As for reported here, we now have an official IntelliSense documentation file that will allow you to get rich intellisense for jQuery from inside of Visual Studio.

When you go to download jQuery, you will see a Documentation link.  Or you can download it directly from here:
http://code.jquery.com/jquery-1.2.6-vsdoc.js

Using this file is simple, if you are inside an ASPX page, you can reference it like this:

<script src="jquery-1.2.6.js" type="text/javascript"></script>
<% if (false) { %>     <script src="jquery-1.2.6-vsdoc.js" type="text/javascript"></script>
<% } %>

The if (false) part will make sure we don’t render or execute this as a script but it will get loaded by IntelliSense.

If you are inside a javascript file, you can reference it in the normal way like:

/// <reference path="jquery-1.2.6-vsdoc.js" />

This also supports plug-ins.  So you will get IntelliSense on the as well.  Hope that those of you using jQuery can put this file to good use.

Published 30 October 08 11:28 by Tom
Filed under: , , ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# IntelliSense for jQuery | MS Tech News said on October 30, 2008 11:33 AM:

PingBack from http://mstechnews.info/2008/10/intellisense-for-jquery/

# MGZ said on October 30, 2008 2:54 PM:

Has anyone done this for Prototype? Is there a centralized site for intellisense files like this?

# Aaron Powell said on October 30, 2008 6:16 PM:

Nice tip Tom. I was wondering what was going to be the best way to have the intellisense in the designer but not on the 'live' page.

# Godwin said on November 16, 2008 2:22 PM:

Hello,

even I need a way to get similar functionality on prototype....

I guess no solution till date :(

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker