Sunday, June 27, 2010

Enabling javascript IntelliSense in Visual Studio 2010 for SharePoint 2010

Hi all,

Its quite confusing when you develop a custom dialog box or customize ribbon control in SharePoint 2010 there is no javascript IntelliSense in VS 2010. Its easy to enable by adding referencing these JavaScript files on the top:

/// <reference name="MicrosoftAjax.js" />
/// <reference path="file://C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/SP.core.debug.js" />
/// <reference path="file://C:/Program Files/Common Files/Microsoft Shared/Web Server Extensions/14/TEMPLATE/LAYOUTS/SP.debug.js" />

Its a tip from Chakkardeep's blog.
In fact, its similar for Microsoft Ajax library where ASP.NET developers have to add a reference to the MicrosoftAjax.js to the JavaScript files.

/// <reference name="MicrosoftAjax.js"/>

Cheers,
--Aaroh

No comments:

Low Code Reimagined with AI + Copilot Pitch Deck - Copy Copilot day (Virtual) - 2023

 Hi All,  I presneded a session at Pune UG on Low Code Reimagined with AI + Copilot Pitch Deck.  Video is at this address  https://www.youtu...