Bookmark and Share

Thursday, August 26, 2010

How to Add JQuery Intellisense to JS libraries in VS2010

If you work with JQuery and VS2010 you will find usefull enabling intellisense support for JQuery, for example:

or 





You can have the JQuery Intellisense following this steps:


  1. Download from the JQuery site the file jquery-1.4.1-vsdoc.js, search for the Visual Studio link near the release link
  2. Add the file to your project
  3. Change your js file and add to the top of the file:

Hope it helps!

2 comments:

  1. thank you .. it is a great information ..

    but i dont understand the 3ed step .. can you plz provide more info. about it..

    ReplyDelete
  2. In the 3d step you need to edit your JS file (or HTML/ASP/ASPX file) and add the comment ///reference ertc...

    It instructs Visual Studio that the description of the jquery libraries are located in the file jquery-1.4.1-vsdoc.js.

    This file is used only bu VS and is inside a comment... no other will use it!

    ReplyDelete