Using Jquery Intellisense in Visual Studio
1) Using Jquery Intellisense in Page
<script src=”http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2.js” type=”text/javascript”>
<script src=”http://ajax.microsoft.com/ajax/jquery/jquery-1.3.2-vsdoc.js” type=”text/javascript”>
You can get the latest version from here:
http://www.asp.net/ajaxlibrary/cdn.ashx
2) Using Jquery Intellisense in External Javscript files
1) Download Latest Jquery files and its related vsdoc file.
For ex:
Jquery Files: jquery-1.3.2.js
Vsdoc File: Jquery-1.3.2-vsdoc.js
2) Include both files in your project directory
3) Open your external javascript file in which you want intellisense
Drag the Jquery-1.3.2-vsdoc.js file on the first line at top of external file.
It will be displayed as below:
/// <reference path=”jquery-1.3.2-vsdoc2.js” />
That’s it you can now use intellisense in that file. To test whether it is working or not you can type $( and you should be presented with documentation.
Note: jQuery and the documentation file need to be named the same with the exception that the documentation file end with -vsdoc.js
Recent Comments