在最小化后无法还原 VisualStudio2022窗口(IDE 本身)

我有 Visual Studio 2022,最新版本17.1.0运行在 Windows 10 Pro 上(最新版本)。这是昨天才开始发生的,所以可能和新的更新有关。

我打开一个解决方案,一切正常。如果我最小化 VisualStudio,我就无法得到它。

它在运行。我可以看到工具栏图标看起来像它应该是当一个应用程序正在运行,我可以看到它在任务管理器。但是我不能让它回到屏幕上(我有一个单一的显示器设置)。它发出错误声音,但什么也不做。我可以右键单击并打开另一个实例,或者右键单击并选择“关闭窗口”,但是我根本不能与原始实例交互。如果我尝试 ALT-TAB 到它,我可以看到它,但它仍然只是作出一个错误的声音,并不会回来。如果我将鼠标悬停在任务栏按钮上,它会显示窗口,我可以右键单击它,然后选择“恢复”或“最大化”,这是唯一的方法,我可以得到它回来。

它似乎可以为多个解决方案做到这一点,但它是相当一致的,一旦它被最小化,我就无法在不关闭和重新打开解决方案或右键单击的情况下将其返回。有人遇到过这种事吗?

6100 次浏览

Have the same problem. Only awkward workaround I found so far was to use Process Explorer from Sysinternals, search for a process named devenv.exe, right click -> Window -> Bring To Front.

Update - easier workaround: Click on the VS icon on the taskbar. Once it is selected, press Windows + Cursor Up.

This was happening to me regularly with VS 2022 17.1.

So I installed Feature update to Windows 10, version 21H2 to see if that helped, and thus far I have not run into the issue.

I have the same problem ever since I updated to VS 2022 17.1. It seems we'll have to wait for an update that fixes the problem.

I have a workaround that works well whether you have multiple vs instances opened and stacked in your taskbar or not.

You simply have to right click the instance you want to restore in the taskbar and select the Maximize option

I do a shift+Right-Click on the icon in the task bar, then select Maximize.

That works for me. [This is still an issue with 17.1.1]

I've also found a solution. Just hover your mouse over the icon in the task bar so that the preview is showing, then RightClick -> Restore directly on the preview window rather than needing to launch other tools, task manager etc.

Another solution I've found, is to remove the content of your clipboard. (Start -> Run ... Put some text there copy it). Now you can restore

Like everyone else, I too am having this issue. I can get it to work with a Shift-Right click, and either maximize or restore works to bring the window to the front. Yet as soon as I minimize again, it breaks.

It appears that using the minimize button on the VS window itself is what breaks it. If you use the Windows taskbar, it minimizes and restores as expected.

Triple clicking it works for me, but it's still a workaround. (Three times as fast as you can)

You can try following these steps:

  • left-click one the Taskbar icon
  • right-click on the instance
  • select Restore or Maximize to get back to the IDE

I had the same issue with Version 17.1.0.

Tried all the above suggestions with no luck until I figured out that I recently had disconnected from an external display aside my laptop. Some fiddling in display settings solved it.