Intellisense停止在VWD 2010中工作 [英] Intellisense stops working in VWD 2010

查看:101
本文介绍了Intellisense停止在VWD 2010中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VWD2010,如主题标题所述,我对项目的智能感知可用性为零.

I'm working with VWD2010 and as stated in the topic title I have zero intellisense usability for my project.

几个月前,我重新安装了VWD2010,然后启动,发现intellisense无法正常工作.在过去的三个月中,我一直在进行VS2010试用,并且intellisense工作正常.试用版已过期,所以现在我回到VWD2010.

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似乎适用于新项目,因此我创建了一个新项目,并从VS2010项目中传输了所有文件. Intellisense可以正常工作几天,但是今天早上我又回来了,它没有工作...

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适用于新项目;
  • 在编辑器设置中,Intellisense已打开;
  • 我之前已经重新安装了VWD2010几次,而没有造成任何差别;
  • 我已经通过选项"菜单和命令行进行了重置设置,再次没有任何区别.

上次周四晚上,我上次关闭计算机时,Intellisense肯定正在为该项目工作.

Intellisense was definitely working for this project last Thursday evening when I last switched off my computer.

我已经在这个问题上搜索了好几次,找不到关于智能感知实际上应该如何工作的任何信息.建议通常会恢复为重新安装VWD"或重置您的设置" ...任何帮助将不胜感激.

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.

推荐答案

以下是MSDN论坛线程

Here is a distillation of some solutions that have worked for other users from the MSDN forum thread IntelliSense stopped working:

  • 在Visual Studio中,转到工具> 导入和导出设置, 然后选择重置所有设置.

关闭Visual Studio之后,将 .suo 文件移动到临时文件中 文件夹,然后重新打开Visual Studio.

After closing Visual Studio, move the .suo file to a temporary folder, and then reopen Visual Studio.

检查源文件的 Build Action 属性是否设置为 编译,而不是内容.将文件设置为内容"会将源文件与项目的其余部分分离,从而禁用IntelliSense.

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.

如果您有一个Web项目,请从该项目中排除WebConfig,然后 重建项目.然后再次包含WebConfig.file.

If you have a web project, exclude the WebConfig from the project and rebuild the project. Then include the WebConfig.file again.

如果您使用的是C ++,请关闭Visual Studio,然后删除.ncb 文件. ncb文件包含C ++的IntelliSense信息.删除它会重置IntelliSense,但可能需要一段时间才能在后台重建.

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.

最后,从帖子 Visual Studio& XAML –智能感知不起作用:

  • 如果您使用的是XAML,则在自定义CLR名称空间的末尾添加;assembly=可以解决此问题.
  • If you're using XAML, adding ;assembly= to the end of the custom CLR namespace fixes the issue.

这篇关于Intellisense停止在VWD 2010中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆