CODEDIGEST
Home » FAQs
Search
 

Technologies
 

How to use jQuery intellisense in an external javascript file in Visual Studio 2008?
Submitted By Satheesh Babu B
On 4/19/2009 12:05:26 AM
Tags: Interview Questions,jQuery  

How to use jQuery intellisense in an external javascript file in Visual Studio 2008?

 

The introduction of jQuery has made the client side scripting simpler and easy. Because of its simplicity, jQuery became on of the most widely used client side scripting in web based application. Traditionally, visual studio does not provide intellisense support to any client side scripting libraries. Since, jQuery become the natural choice of many web developers for client side scripting Microsoft added the intellisense support in Visual Studio 2008 and above.

 

Most of the times, we will segregate our javascript code in a separate file and link it through script tag in aspx page. By default, jQuery intellisense will not work in an external javascript file.

 

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.

 

Read How to enable jQuery intellisense in Visual Studio 2008?

 

Recent FAQs
  • View All FAQs..