visual-studio Visual Studio 2010 Intellisense 减慢一切
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3590489/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2010 Intellisense slows down everything
提问by The Communist Duck
I have the issue with Visual Studio 2010, after a while, running exceptionally slowly and slowing everything else down with it. I'm meaning:
一段时间后,我遇到了 Visual Studio 2010 的问题,运行速度异常缓慢,并减慢了其他一切。我的意思是:
- Most other open windows become unresponsive
- Typing is delayed
- Build times increase 10-fold
- Saving takes forever
- 大多数其他打开的窗口变得无响应
- 打字延迟
- 构建时间增加 10 倍
- 保存需要永远
I am sure this is an Intellisense issue; disabling it solves everything, and when this happens in Task Manager I find a couple of vcpkgsrv.exe (the Intellisense thing) running at about 160,000K memory (This is about the same as an older, less graphical intensive games). However, I would like to run Intellisense. The only way I have of solving this at the moment is to abort these processes when they slow stuff down.
我确定这是一个 Intellisense 问题;禁用它可以解决所有问题,当在任务管理器中发生这种情况时,我发现有几个 vcpkgsrv.exe(Intellisense 的东西)运行在大约 160,000K 内存(这与较旧的、图形密集度较低的游戏大致相同)。但是,我想运行 Intellisense。我目前解决这个问题的唯一方法是在它们减慢速度时中止这些过程。
I have tried getting the patch and think it is installed, because I cannot install it again.
我已经尝试获取补丁并认为它已安装,因为我无法再次安装它。
EDIT: I'm running Windows XP, with VSC++ Express. I have 2GB RAM, and a dual core 3.2GHz Processor. Anyone help please?
编辑:我运行的是带有 VSC++ Express 的 Windows XP。我有 2GB RAM 和一个双核 3.2GHz 处理器。请问有人帮忙吗?
采纳答案by zarzare
I had the same problem with my Windows XP machine. After a long search I found a solution so I'll post it back here since it was the first result I got on google.
我的 Windows XP 机器也有同样的问题。经过长时间的搜索,我找到了一个解决方案,因此我将其发布回此处,因为这是我在 google 上得到的第一个结果。
Install Windows Automation API update for Windows XP (KB971513).
安装适用于 Windows XP 的 Windows 自动化 API 更新 (KB971513)。
回答by Oleg Tkachenko
It might indicate an issue with the solution's sdf file. Try to close the solution, delete sdf file and load the solution again.
这可能表明解决方案的 sdf 文件存在问题。尝试关闭解决方案,删除 sdf 文件并重新加载解决方案。
回答by Steve Leiphart
If you find your Visual Studio 2010 system pausing frequently when you are entering code... sometimes to the point of fading your code and saying "Not Responding" on the title bar, you are probably having Intellisense problems. Especially if you are working on code that won't even compile in Visual Studio and never will because you are just using VS as an editor and will be building your code in some other environment i.e. embedded, you will get this a lot.
如果您发现您的 Visual Studio 2010 系统在您输入代码时经常暂停......有时会导致您的代码褪色并在标题栏上显示“无响应”,您可能遇到了 Intellisense 问题。特别是如果您正在处理的代码甚至不会在 Visual Studio 中编译并且永远不会因为您只是将 VS 用作编辑器并且将在其他一些环境(即嵌入式)中构建您的代码,您将获得很多。
To get around it, I disabled Intellisense (it just draws the red squigglies under undefined variables etc.) and "Preprocesses" your code to enable and disable code inside #ifdef flagged areas. This is not useful enough in my environment to justify the one to ten second pauses every few seconds while I am entering code.
为了解决这个问题,我禁用了 Intellisense(它只是在未定义的变量下绘制红色波浪线等)并“预处理”您的代码以启用和禁用 #ifdef 标记区域内的代码。这在我的环境中并不足以证明在我输入代码时每隔几秒暂停一到十秒是合理的。
To disable Intellisense, go to Tools | Options click on Text Editor then on C/C++ and then on Advanced. Scroll the right side down to see "IntelliSense" and set "Auto Quick Info" to False.
要禁用 Intellisense,请转到工具 | 选项依次单击文本编辑器、C/C++ 和高级。向下滚动右侧以查看“IntelliSense”并将“自动快速信息”设置为 False。
Bingo! The problem will be gone!
答对了!问题将迎刃而解!
回答by ahoffer
My slow downs and non-responsive issues were caused by a security product. The name of the process was "Rtvscan.exe". It hogged all the disk I/O. It was part of Symantec's security suite on my Win XP machine. It's a corporate laptop, so my corrective options were limited. I used Process Explorer to suspend the process. (If you kill the process, it simply restarts).
我的速度减慢和无响应问题是由安全产品引起的。该进程的名称是“Rtvscan.exe”。它占用了所有磁盘 I/O。它是我的 Win XP 机器上赛门铁克安全套件的一部分。这是一台公司笔记本电脑,所以我的纠正选择是有限的。我使用 Process Explorer 来暂停进程。(如果您终止该进程,它只会重新启动)。
Link to Process Explorer on MS Web site: http://technet.microsoft.com/en-us/sysinternals/bb896653
MS 网站上 Process Explorer 的链接:http: //technet.microsoft.com/en-us/sysinternals/bb896653
回答by PravinC
Another setting which worked for me for JavaScript. Go to Tools - Options - TextEditor - JScript Uncheck "Format completed line on Enter"
另一个对我有用的 JavaScript 设置。转到工具 - 选项 - 文本编辑器 - JScript 取消选中“在输入时格式化完成的行”
回答by Jay
3.5+ GB memory recommended!
推荐 3.5+ GB 内存!
VS 2010 uses a huge amount of memory with intellisense on any decent size project.
VS 2010 在任何体面的项目中使用大量内存和智能感知。
The patch listed above as correct answer did not help for me. Reinstalling the OS from scratch didn't help. Installing VS 2010 SP1 did not help. What did help was a memory upgrade from 2GB to 3.5GB.
上面列为正确答案的补丁对我没有帮助。从头开始重新安装操作系统没有帮助。安装 VS 2010 SP1 没有帮助。有帮助的是内存从 2GB 升级到 3.5GB。
I'm running Windows XP, SP3.
我正在运行 Windows XP,SP3。
回答by Hans Passant
This is not a common complaint, which makes it likely it is environmental. Some random shots in the dark:
这不是一个常见的抱怨,这使它可能是环境问题。黑暗中的一些随机镜头:
- Not having at least 2 GB of RAM
- Installing VS2010 on an old machine with a badly fragmented disk drive
- Editing extremely large source code files (> 10,000 lines)
- Keeping a very large number of editor tabs opened (> 50)
- A bad interaction with a Visual Studio add-on
- A bad interaction with a system add-on
- 没有至少 2 GB 的 RAM
- 在磁盘驱动器碎片严重的旧机器上安装 VS2010
- 编辑极大的源代码文件(> 10,000 行)
- 保持大量编辑器选项卡打开(> 50)
- 与 Visual Studio 加载项的不良交互
- 与系统加载项的不良交互
The IntelliSense engine for C++ has lots of tweakable items in Tools + Options, Text Editor, C/C++, Advanced. This blog postdescribes these options in detail. If your machine is old and not well maintained (i.e. never ran a disk defrag, lots of shell extension handlers) then consider a new one or a system wipe.
C++ 的 IntelliSense 引擎在工具 + 选项、文本编辑器、C/C++、高级中有许多可调整的项目。这篇博文详细介绍了这些选项。如果您的机器很旧并且维护不善(即从未运行过磁盘碎片整理、大量外壳扩展处理程序),那么请考虑换一台新机器或进行系统擦除。
回答by Yevgeniy Zats
I removed *.suo file and VS 2010 works now fine
我删除了 *.suo 文件,现在 VS 2010 工作正常

