I was searching the web today how I could enable SharePoint intellisense for JavaScript.
I found the following solution.
The Solution:
Step 1: Add the following reference => System.Web.Extensions
step 2: Create a new JavaScript file and name it: “theBom.js”
step 3: Add the following javascript reference
///
///
///
///
///
///
///
/// "C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\14\\TEMPLATE\\LAYOUTS\\SP.UI.Dialog.debug.js"/>
The reference we use in JavaScript is like a using in C#.
step 4: For the last step we need do press the following keys => ctrl + shift + j . This will update the intellisense for the JavaScript.
Soruce: http://davemcmahon81.wordpress.com/2010/12/28/getting-sharepoint-2010-javascript-intellisense-to-work-in-vs2010/