在 Visual Studio 2019 年重新打开关闭的标签页(撤消关闭)?

Re-open closed tab (undo close) in Visual Studio 2019?

根据这个老问题:Re-open closed tab (undo close) in Visual Studio 2013? 我想像在浏览器中一样打开关闭的标签页。我使用了 2017 年的 power tools 插件来让它工作,但在 2019 年似乎不起作用。惊讶的是 VS 仍然没有这个原生功能。还有其他解决方法吗?

Power Commands 扩展支持 Visual Studio 2019:

Reopens a closed document, returning the cursor to its last position. Recently closed documents can be reopened through the Edit menu and clicking Undo Close or by using the Ctrl + Shift + Z shortcut.

Visual Studio Document Reopen 扩展使用 (CTRL + SHIFT + T) 重新打开最后关闭的文档。

在某种程度上,可以在没有扩展的情况下做到这一点......通过使用“转到”功能:

你按下 CTRL + T,在出现的框中输入 r,它会显示一个“最近的”列表文件”。关闭或打开文件似乎将该文件置于列表顶部。

来源:https://www.meziantou.net/visual-studio-tips-and-tricks-open-recently-closed-files.htm.

有关您可以在“转到”功能上执行的一些更奇特的操作的文档:https://docs.microsoft.com/en-us/visualstudio/ide/go-to?view=vs-2019

有一个内置的快捷方式 CTL + 1,R 可以打开所有最近使用的文件。但是我不想将它更改为 CTL + T。您可以通过打开设置 -> 键盘 -> Edit.GoToRecentFile.

来做到这一点