Visual Studio不显示文件内容

发布于 2024-09-02 12:44:39 字数 465 浏览 3 评论 0原文

输入图片这里的描述

图片说明了一切,它当前应该显示一个文件,但正如您所看到的,它在绘制文件内容时遇到问题。

我已经卸载了所有插件并重新启动 Visual Studio。

如果重要的话,之前的项目是 VS 2k8。

新信息

如果我等了 5 分钟(我有一个带 6GB 内存的四核 I7,295gtx。VS 从 SSD 运行)。

它将加载文本,但我无法“编辑”,因为它将加载一些文档(.cs),但当我选择我想要编辑的文档时,它并没有真正打开该文件。

最贴切的描述就是 Visual Studio 有 5 分钟的延迟。

enter image description here

Picture says it all, it should currently be showing a file but as you can see its having issues drawing the content of the file.

I have unloaded all addons and restart visual studio.

If it matters the previous project was a VS 2k8.

New Info:

If i wait a good 5min ( I have a Quad core I7 with 6gb ram, 295gtx. VS is running from a SSD).

It will load the text, but I'm unable to "edit", as it will have loaded some document (.cs) but when i select the one i want to edit it not really open that file.

It can best be described as visual studio having a 5min lag.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

魄砕の薆 2024-09-09 12:44:39

我有这个精确的错误。我会从解决方案资源管理器打开文件,但编辑器窗口要么不会出现,只显示 100 多行文件中的 1-2 行,要么会显示文件,但我无法滚动或以其他方式编辑文件。 VS 的某些部分正在工作,即,如果我将鼠标悬停在(不可见)文本的右侧部分上,则会出现小工具提示,但在这种状态下我显然无法做太多事情。

我安装了很多 VS 东西,所以我认为是某种插件或扩展导致事情变得混乱。这些安装的项目包括:

  • Visual Studio 2010 10.0.30319.1
  • ReSharper 5.1.3000.12 (JetBrains)
  • DevExpress DXCore 10.1.5(免费社区版)
  • DX Source Outliner(DXCore 的原因,来自 sbohlen)
  • Tabs Studio 2.0.6 (www.tabsstudio.com )
  • Productivity Power Tools 10.0.11019.3 (Microsoft)
  • Snippet Designer 1.3.0 (Matt Manela)

我通过工具...扩展管理器...解决了它(2/18/2011)...禁用 Productivity Power Tools 和 Snippet Designer。不知道发生了什么,但这为我解决了问题,我又回去工作了。可能是系统绘图和/或显示选项中的某些内容。

编辑

问题仍然存在。不幸的是它是间歇性的,我无法可靠地重现它。现在的嫌疑人是 BugShooting 和 CaptureWiz 屏幕捕获工具。我曾经在使用它们记录错误时出现过这种行为,然后又消失了。

第二次编辑

该问题仍在继续。我还无法确定原因,但通常退出 VS 并重新启动可以解决问题。该行为的其他部分包括菜单选项(文件、编辑、查看等)无法正常运行,因为它们仅显示突出显示而不显示实际的菜单项。该解决方案将构建并运行得很好,但仍然无法正确显示。

I had this precise bug. I would open files from the solution explorer but the editor window would either not appear, only 1-2 lines of 100+ line files would display, or the file would display but I could not scroll or otherwise edit the file. Some parts of VS were working, i.e. little tooltips would appear if I moused over the right part of the (invisible) text but I obviously couldn't do much in this state.

I have a lot of VS stuff installed so I thought it was some sort of plugin or extension that was causing things to go screwy. These installed items include:

  • Visual Studio 2010 10.0.30319.1
  • ReSharper 5.1.3000.12 (JetBrains)
  • DevExpress DXCore 10.1.5 (free community edition)
  • DX Source Outliner (reason for DXCore, from sbohlen)
  • Tabs Studio 2.0.6 (www.tabsstudio.com)
  • Productivity Power Tools 10.0.11019.3 (Microsoft)
  • Snippet Designer 1.3.0 (Matt Manela)

I solved it (2/18/2011) by Tools... Extension Manager... disabling the Productivity Power Tools and Snippet Designer. No idea what was going on but this fixed it for me and I was back to work. Probably something in the system drawing and/or display options.

EDIT

The issue continues. Unfortunately it is intermittent and I have not be able to reproduce it reliably. Now the suspects are the BugShooting and CaptureWiz screen capture tools. I've had the behavior show up and then disappear in and around the time of logging bugs with them.

2nd EDIT

The issue continually continues. I have not yet been able to determine the cause but usually quitting VS and restarting resolves the issue(s). Other parts of the behavior includes the menu options (File, Edit, View, etc.) not operating properly as they show only the highlight but not the actual menu items. The solution will build and run just fine, but things still won't show up properly.

陌伤ぢ 2024-09-09 12:44:39

我遇到了类似的问题,VS2012 告诉我有活动(打开)的文件,但文本编辑器没有显示它们。单击解决方案资源管理器中的文件似乎没有任何反应。 Alt + Tab 只是循环浏览打开的文件,但屏幕上仍然没有呈现任何内容。

我通过单击“窗口”菜单项,然后单击“关闭所有文档”解决了这个问题。然后,Visual Studio 会按预期运行并正确打开(并呈现)文件。

I had a similar issue whereby VS2012 was telling me that I had active (open) files, but the text editor was not displaying them. Clicking on the file(s) in the solution explorer seemingly did nothing. Alt + Tab just cycled through the open files, but still, nothing rendered on screen.

I solved it by clicking on the "WINDOW" menu item and then"Close All Documents". Visual Studio then behaved as expected and opened (and rendered) the files correctly.

街道布景 2024-09-09 12:44:39

此错误是由 mumble 1.2.x 创建的,但在 1.3.x 的快照版本中已修复。您可能会通过其他执行 DirectX 覆盖的软件遇到类似的错误。

This bug was created by mumble 1.2.x, but is fixed in the snapshot versions of 1.3.x. YOu can likely get simular bugs by other software that does DirectX overlay.

握住你手 2024-09-09 12:44:39

我在 Visual Studio 2012 中遇到了同样的问题。通过“添加/删除程序”运行 Visual Studio 2012 修复已修复该问题。

以下操作无效:

  • 关闭并重新打开解决方案
  • 打开不同的文件类型
  • 重新启动 Visual Studio
  • 添加和删除插件
  • 通过 Visual Studio 的“导入和导出设置”中的“重置所有设置”选项重置选项
  • 重新启动窗口

I had the same issue in Visual Studio 2012. It was fixed by running a repair of Visual Studio 2012 via Add/ Remove Programs.

The following had no effect:

  • Closing and reopening a solution
  • Opening different file types
  • Restarting Visual Studio
  • Adding and removing plugins
  • Resetting options via the 'Reset all Settings' option in Visual Studio's 'Import and Export Settings'
  • Rebooting windows
荒岛晴空 2024-09-09 12:44:39

我在 Visual Studio 2013 中遇到了这个问题。问题是:扩展“Regex Tester”。我不得不卸载这个扩展。

I had this problem in Visual Studio 2013. Problem was: extension "Regex Tester". I had to uninstall this extension.

红颜悴 2024-09-09 12:44:39

我在 Visual Studio 2022 中遇到此问题,根据其他人的回答,问题似乎来自 Visual Studio 扩展
我在禁用 Resharper 2023.1.2 时遇到此问题
重新启用Resharper扩展后,问题解决!

I have this problem in Visual Studio 2022, and based on others answer it seems problem come from Visual Studio Extensions
I encountered this problem problem when disable my Resharper 2023.1.2
after re-enable Resharper extension, problem solved!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文