最近在写js代码时,JavaScript的语法提示(Intellisense)功能总是会自动关闭,打开后一两分钟有自动关闭了。我甚是郁闷,敢问各位大虾,这是什么原因引起的呢??

解决方案 »

  1.   

    如果有任何refernced文件中的错误,将打破由同一文档中的所有文件的引用的intellisense。 The next version of Visual Studio is going to be much more robust in this respect. Visual Studio的下一个版本将是在这方面更加强劲。 I apologize directly for this fragility.我为此道歉直接脆弱。 We made some design decisions early on that we prevented us from making VS9 external references more robust.我们取得了一些早期的设计决策,我们无法作出更有力的外部引用VS9我们。 In the meantime, use the following workaround.在此期间,使用下面的解决方法。 Install SP1 from the link Slace gave you.安装从链接Slace给你SP1的。 If you have a reference a file named .js and there is a file named -vsdoc.js in the same location, then JS intellisense will pick up the -vsdoc version.如果你有一个文件名为参考。js和有一个文件名为- vsdoc.js在同一个位置,然后js中的intellisense将拿起- vsdoc版本。 If that script is empty then it won't generate an error.如果该脚本是空的,然后它会不会产生一个错误。 Identify the jquery plugin that is causing intellisense generation to fail and place a -vsdoc version next to it.确定的jQuery插件,是造成失败的intellisense一代和地点1,vsdoc版本,它旁边。 You won't get intellisense for UI, but you will still get jquery and other plugins that do work.你不会得到用户界面的intellisense,但你仍然会得到jQuery和其他插件,做工作。