Tuesday, June 10, 2014

Enable Sharepoint js intellisense

I know most of you people find it difficult to add intellisense to visual studio 2012. 
Follow the below steps to get it working . 

It works like a charm in JavaScript file for SharePoint hosted app:

 

It works for all my apps. I don't have to reference SharePoint JavaScript API for each new app.

How it works
1. copy the path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\SP.debug.js"

2. Open Visual Studio and clicked on TOOLS->Options

3. Click on Text Editor -> JavaScript ->IntelliSense -> References

4. Add the sp.debug and clicked on "OK".


No comments:

Post a Comment