Windows 7 x86 上的 Visual Studio 2008 SP1 无法使用
我在 Windows 7 x86 上运行 Visual Studio 2008(团队系统版)。这是操作系统的全新安装,以及 VS 的全新安装,包括 SP1。
不知道有没有人有过这样的经历。编辑器(不是设计师或其他任何东西,只是文本编辑器)非常不可用。我的意思是,编辑文本是一种不稳定的体验,似乎某些操作会导致滞后。例如,Ctrl+Backspace 会出现明显的延迟。使用箭头键向上或向下滚动源文件似乎也有滞后。
很难解释这种“滞后”。感觉编辑器跟不上我的打字速度。
我在 Windows XP 和 Server 2003(作为桌面)上运行 VS2008 没有出现这个问题。在这些编辑器上,编辑器与 TextPad 或任何其他更简单的编辑应用程序一样灵活。
同样在同一台机器上 VS2010 也没有表现出该行为。编辑器工作得很好。
事实上,这个问题让我想起了VS2005编辑器可怕的性能,我不得不停止使用它,因为它难以忍受。实际上,我最初的 .NET 2.0 体验大部分是通过使用 vim 和 NAnt 文件获得的,直到我升级到 VS2008。
这是我到目前为止所尝试过的,但没有成功:
- 关闭更改跟踪。
- 关闭分隔符突出显示 (1)
- 关闭尽可能多的屏幕糖果(行号、选择边距等)
- 关闭导航栏(这是修复 VS2005 的建议操作之一)。
- 关闭“编辑器中的下划线错误”和“显示实时语义错误”
- 关闭自动格式设置。
(1) 这是 VS 中的错误吗?我把它关掉了,它仍然突出显示大括号!?
我什至安装了一个 2008 年 3 月的修补程序,据称该修补程序解决了我以前从未在其他任何地方安装过的 HTML 源代码编辑器的问题,但它没有任何问题。效果也可以。
从操作系统的角度来看,我尝试关闭所有动画、效果、主题和养眼效果。亦无济于事。但有趣的是,当运行没有主题的 Win7 时,解决方案资源管理器中的树视图在获得或失去焦点时往往会不受控制地闪烁。当眼睛糖果打开时,它会停止闪烁。
该问题发生在任何类型的项目中,打开或关闭任意数量的文件。当 Intellisense 关闭时也会发生这种情况;然而,一旦我关闭 Intellisense,使用 VS 就没有多大意义了,所以我想保留它。但无论如何都没有任何效果。
最后我的问题是:有人遇到过这个问题吗?如果是这样,可以修复吗?有谁知道MS是否正在计划另一个VS2008服务包来修复Win7问题或类似的问题?
我每天在这件事上写8-10个小时的文字,但我无法处理这些问题。我不关心花哨的设计师和东西,但至少我需要编辑器合理地执行。
(注意:为了避免此处的推理,我还无法将此项目升级到 VS2010。也许几个月后,但不是现在。所以我现在需要 VS2008 才能工作现在) .
更新 顺便说一句,这是 C#。我没有尝试过 C++ 或 VB。我还尝试将字体从 ProggyClean(我最喜欢的)切换到 Consolas,再切换到 Courier New,然后再切换回来,但没有效果。另一件事:症状似乎是插入符号过度闪烁,尤其是在按 Enter 时。就像眨眼-眨眼-眨眼--眨眼-眨眼-眨眼-眨眼。如果这是有道理的话。
I'm running Visual Studio 2008 (Team System edition) on Windows 7 x86. This is a clean install of the OS, and clean install of VS, including SP1.
I don't know if anyone has experienced this. The editor (not designers or anything else, just the text editor) is extremely unusable. By that I mean that editing text is a sort of herky-jerky experience where it seems there are certain actions that cause lag. Ctrl+Backspace for example, noticeable lag. Scrolling up or down a source file with the arrow keys also seems to lag.
It's difficult to explain this "lag". It feels like the editor isn't keeping up with my typing speed.
I've run VS2008 on Windows XP and Server 2003 (as a desktop) without this problem. On those the editor is as snappy as TextPad or any other, simpler editing application.
Also on this same machine VS2010 does not exhibit the behavior. The editor works fine.
In fact, the problem reminds me of the horrible performance of the VS2005 editor, which I had to stop using because it was unbearable. Most of my initial .NET 2.0 experience was obtained by using vim and a NAnt file, actually, until I upgraded to VS2008.
This is what I've tried so far, without success:
- Turn off change tracking.
- Turn off delimiter highlighting (1)
- Turn off as much screen candy as possible (line numbers, selection margin, etc)
- Turn off the navigation bar (this was one of the recommended actions to fix VS2005).
- Turn off "Underline errors in the editor" and "Show live semantic errors"
- Turn off automatic formatting.
(1) Is this a bug in VS? I turned it off and it continues to highlight braces!?
I even installed a hotfix dated from March 2008 that supposedly fixed a problem with the HTML source editor that I never installed anywhere else before, but that didn't have any effect either.
From the OS perspective I've tried turning off all animations, effects, themes and eye candy. Also to no avail. An interesting thing though, when running Win7 without themes the treeview in the solution explorer tends to flash uncontrollably when it gains or loses the focus. With eye candy turned on it stops flashing.
The problem occurs in any type of project, with any number of files open or closed. It also happens with Intellisense turned off; however once I turn off Intellisense there isn't much point to using VS, so I'd like to keep it. But in any case it has no effect.
Finally my question: Has anyone run into this problem? And if so, is it fixable? Does anyone know if MS is planning another VS2008 service pack to fix Win7 problems or something like that?
I write text 8-10 hours a day on this thing and I can't deal with these problems. I don't care about fancy designers and thingamajigs but at the very least I need the editor to perform reasonably.
(Note: To head off one line of reasoning here, I can't upgrade this project to VS2010 yet. Maybe in a few months but not now. So I need VS2008 to work now).
Update This is C#, by the way. I haven't tried C++ or VB. I also tried switching fonts from ProggyClean (my fav) to Consolas to Courier New and back, no effect. Another thing: A symptom seems to be excessive flashing of the caret, especially when hitting Enter. It's like blink-blink-blink--blinkblinkblinkblink-blink-blink. If that makes sense.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您提到这是操作系统的全新安装。您是否安装了所有正确的驱动程序?我发现其中一些问题是由于使用默认驱动程序或未安装所有驱动程序造成的。例如,光标的事情让我想到视频驱动程序。
另外,检查您安装的 .NET Framework 版本,并将其与您的 XP 计算机进行比较。 XP机器同时有.NET 3.5sp1和.NET 4.0,但Win7机器只有.NET 4.0吗?尝试显式安装 3.5 并查看是否有帮助。
You mentioned this was a clean install of the OS. Do you have all the proper drivers installed? I could see some of these problems coming from using default drivers, or by not having all the drivers installed. The cursor thing, for example, makes me think video drivers.
Also, check what versions of the .NET framework you have installed, and compare that against your XP machine. Does the XP machine have both .NET 3.5sp1 and .NET 4.0, but the Win7 machine only have .NET 4.0? Try installing 3.5 explicitly and see if that helps.
我也经历过这样的事情,这让我非常沮丧。我可以单击任何文件的文本,尝试输入,甚至我的光标不会出现一两秒(有时是 4 或 5 秒),然后我的部分或全部输入就会出现。如果我单击另一行,最多五秒钟内不会发生任何变化。如果我向左尝试单击并拖动以选择几行,则在此延迟时间内没有任何反应,然后光标出现在第一行(我首先单击的行,如果我向上选择,这可能是最低的行) ),没有选择任何内容。对于其他单击并拖动选择的操作也是如此,例如变量名称的一部分,甚至双击以选择整个变量名称 - 在滞后之后,光标从我最初单击的位置闪烁,没有选择任何内容。
我的机器相当不错,包括 16GB 内存和 i7 处理器、nVidia 显卡——这不是硬件。
有答案吗?
I am also experiencing this, and it's got me totally frustrated. I can click in the text of any file, try to type, not even my cursor appears for a second or two (or sometimes 4 or 5), then some or all of my typing appears. If I then click on another line, nothing changes for up to five seconds. If I go to the left and try to click and drag to select several lines, nothing happens for this lag time, then the cursor appears at the first line (the one I clicked on first, which might be the lowest line if I selected upwards), with nothing selected. Same thing for other click-and-drag-to-select, like part of a variable name, or even double-click to select the entire variable name -- after the lag, the cursor blinks from where I initially clicked, with nothing selected.
My machine is pretty good, including 16GB of ram and i7 processor, nVidia graphics -- it's NOT the hardware.
Any luck with an answer?
似乎没有任何效果,所以我将不得不忍受这个。感谢所有的评论。
It seems nothing worked, so I'm going to have to live with this. Thanks for all the comments.