Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference javascript files to use visual studio 2010 intellisense

I have a website with very heavy (long javascript > 100KB + JQuery). So, for making the javascript re-useable, I want to separate the logic in different javascript files.

So, I want to make an aggregated javascript file

enter image description here

Please tell me how (I even want to use the VS2010 intellisense in my main JS file about the functions of the other JS files.)

like image 594
aditi bansal Avatar asked Jan 27 '12 08:01

aditi bansal


1 Answers

Javascript Intellisense tends to be extremely unreliable as some updates broke it some updates fixed it, and there are a lot of extensions around it, breaking each other.

Still there is a /// <reference> element for cases like this.

See MSDN article and add line:

/// <reference path="otherscript.js" />

at the top of your script file.

Try to test it with the jQuery vsdoc and your other script files.

Also installing MVC4 installed some dependency or whatever that more-or-less fixed javascript intellisense for me.

like image 126
vinczemarton Avatar answered Oct 13 '22 00:10

vinczemarton