Thursday, 25 October 2012

How to enable jQuery intellisense in Visual Studio


There are two ways to enable jQuery intellisense  in an external js file.

First Method :

To use the jQuery intellisense in an external javascript file, use the following configuration line on top of your javascript file.

/// <reference path="jquery-1.2.6.js"/>

The Path should take the original path where the jQuery file is placed in your project.


Second Method:

Simply drag-n-drop the jQuery library from Solution Explorer to the opened external JavaScript file.

jQuery Intellisense in Visual Studio (1)


jQuery intellisense in Visual Studio (2)



No comments:

Post a Comment