Make IntelliSense work in Visual Studio

I am using Visual Studio 2015 and I want to add https://appsforoffice.microsoft.com/lib/1/hosted/office.jsIntelliSense as a link. So I did the following:

enter image description here

But IntelliSense is still not working:

enter image description here

Can anyone help?

+1
source share
1 answer

Getting the basics of IntelliSense JavaScript is pretty simple - all you have to do is have a triple slash link in your JavaScript file for the CDN location as follows:

/// <reference path="
        https://appsforoffice.microsoft.com/lib/1/hosted/office.js" />

, Office Add ins, Scripts/_reference.js. Scripts/_references.js , "" JS , /// <reference path="..." /> . _references.js . , Visual Studio Web Essentials: http://madskristensen.net/post/the-story-behind-_referencesjs.

, "prod" CDN. " https://appsforoffice.microsoft.com/lib/beta/hosted/office.js", Office.js Office.js( "Scripts/Office/1/office.js).


: , IntelliSense . , , Excel Range ".merge()", IntelliSense . JavaScript , Edit → IntelliSense → VS.

enter image description here

0

Source: https://habr.com/ru/post/1648265/


All Articles