2

我正在寻找一种在 VS2012 的 html 文件中使用 jquery IntelliSense 的方法。

我按照这篇文章在外部 js 库上设置 Intellisense。它适用于 .cshtml、.aspx、.js 文件,但不适用于 .html 文件。

欢迎任何建议。

4

1 回答 1

0

Try adding a link to the direct files rather than a references file. Add the jquery files to the same directory most of the other default files are in and add a reference in that location for the files.

Intellisense doesn't work for JavaScript in Visual Studio 2012

Also make sure all your intellisense options are checked in general settings and in the javascript intellisense sections of tools - Options

于 2012-10-15T12:10:52.823 回答