Enabling jQuery Intellisense inside a JavaScript file in Webmatrix

In WebMatrix, I did the following.

I imported jQuery inside my HTML jQuery documentation page and successfully included jQuery intellisense inside the HTML tag script.

 <script type="text/javascript"  src="JS/jquery-2.1.0.js" ></script>
 <script type="text/javascript"  src="JS/jquery-2.1.0-vsdoc.js" ></script>

Now I want to include jQuery intellisense inside my external JavaScript file, how does it work?

+4
source share
1 answer

Visual Studio reference . script script. IntelliSense . WebMatrix , , :

/// <reference path="JS/jquery-2.1.0.js" />
/// <reference path="JS/jquery-2.1.0-vsdoc.js" />

, .

http://yadi.sk/d/Szhp8tOJNLXYu example

+6

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


All Articles