intellisense with jquery in visual studio 2010
Simple google search came up with this:
VS2010 Tips #7: How to make jQuery Intellisense work for external JavaScript file
Short answer:
/// <reference path="../../scripts/jquery-1.5.1-vsdoc.js"/>
Note that you can't use the @
sign inside js
file like in a Asp.net-MVC View
Read this to learn how you can overcome this.
Right click the project >> Click on 'Add Library Package Reference' >> On the left frame select 'Online' >> On the right most corner frame, enter 'jquery' in the 'Search Online' textbox >> After results come, click and Install the 'jQuery.vsdoc' package.
Simple!