Enabling jQuery Intellisense inside JavaScript file in Webmatrix - Stack Overflow

admin2025-04-22  0

I have done the following in WebMatrix.

I imported jQuery inside my HTML page with documentation of jQuery and successfully enabled jQuery intellisense inside the HTML script tag.

 <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 enable jQuery intellisense inside my external JavaScript file,How would it work?

I have done the following in WebMatrix.

I imported jQuery inside my HTML page with documentation of jQuery and successfully enabled jQuery intellisense inside the HTML script tag.

 <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 enable jQuery intellisense inside my external JavaScript file,How would it work?

Share Improve this question edited Jun 1, 2017 at 18:00 Edison asked Apr 25, 2014 at 5:42 EdisonEdison 4,32110 gold badges45 silver badges76 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

Usually, in Visual Studio you can use reference directive in the beginning of the file. It will include a script file in the scripting context of the current script file. And IntelliSense will be enabled. Since WebMatrix is microsoft as well, I believe this should work too:

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

if path attribute won't work, try file attribute.

http://yadi.sk/d/Szhp8tOJNLXYu

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745284551a294310.html

最新回复(0)