Kick-off SharePoint JSOM intelliSense in Visual Studio

As you may already know that JSOM is part of SharePoint Client Object Model enabled you to interact with SharePoint objects by using Javascript. When you create a SharePoint project then you don’t know how to enable JSOM intellSense, you can follow some steps here.

Create SharePoint project

Kick-off SharePoint JSOM intelliSense in Visual Studio
Kick-off SharePoint JSOM intelliSense in Visual Studio

Check _references.js file

Kick-off SharePoint JSOM intelliSense in Visual Studio
Kick-off SharePoint JSOM intelliSense in Visual Studio

You open the _references.js file and you can see some reference directives in the form of XML comment as the following:

Kick-off SharePoint JSOM intelliSense in Visual Studio
Kick-off SharePoint JSOM intelliSense in Visual Studio

So now, you can use JSOM intelliSense in the current project. But sometimes, you don’t know why the JSOM intelliSense stop working without any noticed from Visual Studio. Then you search Google and find out the way that just restarting your Visual Studio then the problem is solved. Another problem is you try to restart your Visual Studio but it is still not working. So then?

The best way that I’m following is downloading all reference files in your local, then add them to my SharePoint project. After that, I just need to change the path of those files in _references.js:

Kick-off SharePoint JSOM intelliSense in Visual Studio
Kick-off SharePoint JSOM intelliSense in Visual Studio

There you go! Now just do happy coding.

 

Leave a Reply

Your email address will not be published. Required fields are marked *