Intellisense 在 VWD 2010 中停止工作
我正在使用 VWD2010,正如主题标题中所述,我的项目的智能感知可用性为零。
几个月前,我重新安装了 VWD2010,然后发现智能感知无法正常工作。在过去的三个月里,我正在使用 VS2010 试用版,并且智能感知工作正常。试用版已经过期了,所以现在我又回到了VWD2010。
Intellisense 似乎适用于新项目,因此我创建了一个新项目并从 VS2010 项目传输了所有文件。 Intellisense 几天来工作正常,但今天早上我又发现它不工作了...
我检查了以下内容:
- Intellisense 适用于新项目;
- 在编辑器设置中打开 Intellisense;
- 我之前已经重新安装过VWD2010好几次了,但没有造成任何明显的差异;
- 我通过“选项”菜单和命令行重置了设置,同样没有产生丝毫差异。
上周四晚上,当我最后一次关闭计算机时,Intellisense 肯定正在为这个项目工作。
我已经用谷歌搜索过这个问题好几次了,但找不到关于智能感知实际上应该如何工作的丝毫信息。建议通常恢复为“重新安装 VWD”或“重置您的设置”...任何帮助将不胜感激。
I'm working with VWD2010 and as stated in the topic title I have zero intellisense usability for my project.
I installed VWD2010 fresh a few months ago to start and noticed that intellisense wasn't working. For the last three months I was working with VS2010 trial and intellisense was working fine. The trial version expired, so now I am back to VWD2010.
Intellisense seems to work for NEW projects, so I created a new project and transferred all my files from the VS2010 project. Intellisense was working fine for a couple of days, but this morning I am back with it not working...
I have checked the following:
- Intellisense works for new projects;
- Intellisense is switched on in the editor settings;
- I have reinstalled VWD2010 several times before without it making the blindest bit of difference;
- I have reset settings both via the Options menu and via the command line, again without it making the slightest bit of difference.
Intellisense was definitely working for this project last Thursday evening when I last switched off my computer.
I have googled this issue several times and can't find the slightest bit of info on how intellisense is actually supposed to work. Advice generally resumes to "reinstall VWD" or "reset your settings"... Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是 MSDN 论坛线程中对其他用户有效的一些解决方案的精炼 IntelliSense 停止工作:
在 Visual Studio 中,转到工具 > 导入和导出设置,
然后选择重置所有设置。
关闭 Visual Studio 后,将 .suo 文件移至临时文件夹
文件夹,然后重新打开 Visual Studio。
检查源文件的构建操作属性是否设置为
编译而不是内容。将文件设置为 Content 会将源文件与项目的其余部分分离,从而禁用 IntelliSense。
如果您有一个 Web 项目,请从该项目中排除 WebConfig,然后
重建项目。然后再次包含 WebConfig.file。
如果您使用的是 C++,请关闭 Visual Studio,然后删除 .ncb
文件。 ncb 文件包含 C++ 的 IntelliSense 信息。删除它会重置 IntelliSense,但可能需要一段时间才能在后台重建。
最后,来自帖子 Visual Studio & XAML – IntelliSense 不起作用:
; assembly=
添加到自定义 CLR 命名空间的末尾可以修复该问题。Here is a distillation of some solutions that have worked for other users from the MSDN forum thread IntelliSense stopped working:
In Visual Studio, Go to Tools > Import and Export Settings,
and then select Reset all settings.
After closing Visual Studio, move the .suo file to a temporary
folder, and then reopen Visual Studio.
Check that Build Action property of your source files are set to
Compile rather than Content. Setting a file to Content detaches the source file from the rest of the project, disabling IntelliSense.
If you have a web project, exclude the WebConfig from the project and
rebuild the project. Then include the WebConfig.file again.
If you’re using C++, close Visual Studio, and then delete the .ncb
file. The ncb file contains IntelliSense information for C++. Deleting it resets IntelliSense, but it may take a while to rebuild in the background.
Finally, from the post Visual Studio & XAML – IntelliSense Not Working:
;assembly=
to the end of the custom CLR namespace fixes the issue.