简体   繁体   中英

Visual Studio 2013 not Syntax Checking js files

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 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM