just random stuff

How do I get jQuery intellisense in Visual Studio 2008?

We're promised backed in jQuery intellisense in this summer's release of Visual Studio SP 1.  But until then we have a pretty simple approach that ScottG has explained here.

1.) Download the annotated version of jQuery 1.4.5 and also the minified version of jQuery. (I prefer the minifed to the minified+gzip since my hosting provider doesn't gzip anything.)

2.) You'll have to include your minified jQuery library on your page.  Preferably at the bottom. (after the closing html tag, here's why)

3.) right under it copy this exactly

<asp:placeholder runat="server" id="nada" visible="false">
<script type="text/javascript" language="javascript" src="(the location of your annotated version of the jquery lib)"></script>
</asp:placeholder>

4.) Almost there!  Then edit your minified version of jQuery and add this tag to the very top:

/// <reference path="jquery-1.2.3-intellisense.js" />  

This tells visual studio 2008 that we have an intellisense file.

5.) Now we're done.

 

http://blogs.ipona.com/james

» Similar Posts

  1. Why aren't my other web apps working after installing Graffiti CMS at /[root]
  2. Using locks when caching objects
  3. Day 3 at Telligent

» Trackbacks & Pingbacks

    No trackbacks yet.
Trackback link for this post:
http://samdelagarza.com/trackback.ashx?id=23

» Comments

    There are no comments. Kick things off by filling out the form below.

» Leave a Comment