简体   繁体   English

JavaScript Intellisense在Visual Studio 2015中不起作用

[英]JavaScript Intellisense is not working in Visual Studio 2015

I know there are ALLOT of duplicates to this problem on SO as well as all over the web. 我知道在SO以及整个网络上存在各种重复问题。 Unfortunately, nothing that was suggested is working. 不幸的是,没有任何建议是有效的。 I've done everything with the exception of reinstalling VS'15 (Id rather not if I can help it). 除了重新安装VS'15之外,我已经完成了所有事情(如果我可以帮助的话,我不会这样做)。

One site I went to: The story behind _references.js and an interesting thing appeared (or rather it didn't) in the JavaScript Intellisense section of the Text Editor in options. 我去过的一个网站: _references.js背后的故事和一个有趣的东西出现(或者说它没有)在选项中的文本编辑器的JavaScript Intellisense部分。 The reference to the _references.js file was not there. 对_references.js文件的引用不存在。 However after adding this reference, there is still not intellisense. 但是在添加此引用之后,仍然没有智能感知。

Is there anything I can do to get my intellisense back? 有什么办法可以让我的智力回复吗?

After many hours of banging my head against my desk, I found the answer to this weird issue. 经过几个小时的敲击我的桌子后,我找到了这个奇怪问题的答案。 Turns out that the bootstrap.min.js script was interfering with the JavaScript intellisense. 事实证明,bootstrap.min.js脚本干扰了JavaScript智能感知。 So I just commented out the script in my _references.js file. 所以我只是在我的_references.js文件中注释掉了这个脚本。 Also, I changed the autosync to false and instantly the intellisense came back. 此外,我将自动同步更改为false,并立即返回intellisense。

Try changing the order of plugin references in your _references.js file. 尝试更改_references.js文件中插件引用的顺序。

In my case it was the JQuery-UI which I needed to move above the main JQuery reference, as explained in this post: jQuery UI breaks Visual Studio 2015 Intellisense 在我的例子中,我需要将JQuery-UI移到主要的JQuery引用之上 ,如本文所述: jQuery UI打破了Visual Studio 2015 Intellisense

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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