jQuery: The Write Less, Do More JavaScript Library

jQuery intellisense in VS2008 (including chaining)

by Jeffrey Kretz :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Once you install the latest hotfix (http://weblogs.asp.net/scottgu/archive/2008/02/08/vs-2008-web-development-hot-fix-roll-up-available.aspx) VS 2008 supports jQuery javascript intelliense.

 

At first, intellisense doesn’t work on chained methods, but James Hart figured out a way to solve that:

 

http://blogs.ipona.com/james/archive/2008/02/15/JQuery-IntelliSense-in-Visual-Studio-2008.aspx

 

He wrote an automated script that extracts the jQuery XML documentation into a js file, which is used by VS in the intellisense, showing methods, parameters, etc.

 

Unfortunately, the XML documentation he had was pretty old (1.1.2)

 

I used the excellent python script by David Serduke (http://www.exfer.net/jquery/createjQueryXMLDocs.py) to extract the latest documentation straight out of the jQuery wiki and export it as XML, then updated James’ script to work with the new XML schema and re-generated the file.

 

This page here generates the new documentation script, you can just copy and paste it out of the textarea into a .js file.

 

http://cobalt.scorpiontechnology.com/jsi/

 

If you follow James’ blog entry (the first link), it explains how to use it.  I’ve found this invaluable, as it not only gives the signatures of each function, it also gives parameters and documentation information that has been filled out on the Wiki by the jQuery team.  And it does work with chained methods.

 

If this is of value, I should be able to keep this updated (as the Wiki is updated); especially as it is simply a matter of running two automated scripts.

 

Cheers,

JK

 « Return to Thread: jQuery intellisense in VS2008 (including chaining)