Visual Studio Intellisense for jQuery Library


If you want to use jQuery Intellisense for Visual Studio, Microsoft already provides it. Here is how :
  1. Visual Studio 2008, install hotfix KB958502
  2.  download the vsdoc file to the same folder as the original jQuery.js file and make sure that file names match, i.e. if original file name is jquery-1.3.2.js, then the vsdoc file should be named jquery-1.3.2-vsdoc.js (notice: not vsdoc2.js); if you're using the min version of the file, adjust the name accordingly. 
  3. Third, do not include the vsdoc file in the project (it's enough for the file to be in the same folder). Finally, to enable IntelliSense in custom JavaScript files, add the following line at the top of the JavaScript file (enter the correct path).









P.S : To refresh JavaScript IntelliSense, press Ctrl+Shift+J.

0 comments: