visual-studio 在 Visual Studio 中重新打开上次关闭的选项卡
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 
原文地址: http://stackoverflow.com/questions/853038/
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
Reopen last closed tab in Visual Studio
提问by Shawn
Is there any way to reopen the last closed tab in Visual Studio? Similar to Ctrl+Shift+tin FireFox and Chrome?
有没有办法重新打开 Visual Studio 中最后一个关闭的选项卡?类似Ctrl+ Shift+ tFirefox和Chrome浏览器?
采纳答案by Stormenet
You can with the Visual studio Power Commands
您可以使用Visual Studio 电源命令
回答by nawfal
This is not exactly an equivalent, but it can be helpful, so I would mention it.
这并不完全等同,但它可能会有所帮助,所以我会提到它。
There is a much simpler way actually, which is to navigate backward (Ctrl+-). Even if the file is closed, VS opens up the file in a new tab. Of course this is useful only in opening the closed tab immediately after you have closed the tab (ie, if you haven't navigated anywhere else much).
实际上有一种更简单的方法,即向后导航 ( Ctrl+ -)。即使文件已关闭,VS 也会在新选项卡中打开文件。当然,这仅在您关闭选项卡后立即打开关闭的选项卡时有用(即,如果您没有在其他任何地方导航太多)。
回答by Trident D'Gao
Also consider Alt + F, Alt + F
还要考虑Alt + F,Alt + F
(push Altand hold it, now while holding it press Fand then one more time F)
(Alt按住它,现在按住它再按F一次F)
回答by Chris Doggett
If you're using VS 2008, PowerCommandsoffers a "Undo Close" pane, featuring your recently closed documents, or like David said, check the File menu. PowerCommands doesn't limit the number of files it shows, though.
如果您使用的是 VS 2008,PowerCommands提供了一个“撤消关闭”窗格,其中包含您最近关闭的文档,或者像 David 所说的那样,检查文件菜单。但是,PowerCommands 不限制它显示的文件数量。
回答by David Yancey
I don't know of way to open the last closed tab, but you can open your most recent file through your File Menu and the top one should be your most recently closed tab.
我不知道如何打开最后一个关闭的选项卡,但是您可以通过“文件”菜单打开最近的文件,最上面的应该是最近关闭的选项卡。
回答by Simon
in VS 2010 "PowerCommands for Visual Studio 2010"
在 VS 2010 中“Visual Studio 2010 的 PowerCommands”
http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99/
http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99/
Adds a command "Undo Close"
添加命令“撤消关闭”
回答by BotMaster3000
回答by Etienne Weil
In Visual Studio 2020 you can use Shift+Ctrl+T, which is associated with Reopen Closed Editor. This should do what you're expecting.
在Visual Studio 2020可以使用Shift+ Ctrl+ T,这是与关联重新打开关闭的编辑器。这应该做你所期望的。

