سؤال

Visual Studio 2013 isn't verifying .js files.

I have a separate .js file under a Scripts folder, that is then referenced in my ASPX page.

The intellisense works when the script is within an html page or a .aspx page, but not in a .js file.

Is there something I'm missing?

هل كانت مفيدة؟

المحلول

In order to get intellisense to work with js files referenced on your web pag you need to add a _reference.js file. It really doesn't matter where you put the file, but generally it should be placed along with the rest of your js files. Perhaps in a SCRIPTS folder.

Here is a good article explaining it in further detail.

For More Info: (http://gurustop.net/blog/2012/03/03/javascript-js-intellisense-auto_complete-in-visual-studio-11-beta-the-web-_references-js-file)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top