in my previous post on how to enable IntelliSense on JavaScript
http://dandeng.blogspot.ca/2014/09/how-to-enable-javascript-and-jquery.html we can set the reference to the javascript and jquery files by drag and drop those files to the top of the script files.
However we add new file to the project and want the new file being reference in the existing Javascript File.
we must open all the Javascript file and drag and drop the new file to add the reference to the new javascript file. which is quite less efficiency since we need to open each file and check the proper reference had been added.
the Visual Studio has a built in feature to allow us to much efficient on set up the JavaScript reference. we simply add this _reference.js file to the project, then drag and drop the file to each javascript file to enable the intelliSense
Right click on the Script Folder under the solution window, click on the Add menu, then select _referece.js IntelliSense file.
the _reference.js file was added the solution
I just need to drag and drop the _reference.js file into the Javascript file to add reference those file and enable the intelliSense
No comments:
Post a Comment