Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reopen last closed tab in Visual Studio

People also ask

How do I open a recently closed tab in Visual Studio?

Visual Studio Extension to reopen last closed document(s) with (CTRL + SHIFT + T) shortcut.

How do you open last tab back?

On your keyboard, you can hit Command+Shift+T (on Mac) or Ctrl+Shift+T (on Windows). Doing this once will bring up your most recently closed tab, doing so again will bring back the penultimate one and so on.

How do I reopen a Visual Studio project?

On the start window, select Open a project or solution. Visual Studio opens an instance of File Explorer, where you can browse to your solution or project, and then select it to open it. If you've opened the project or solution recently, select it from the Open recent section to quickly open it again.

How do I find a tab I accidentally closed?

A trick to remember for your Chrome web browser is to right-click an empty tab. This will open up a drop-down menu that provides the option for Reopen Closed Tab. If this doesn't quite work out, you can also try using the Ctrl+Shift+T keyboard shortcut. If you're using Android, you can also accomplish the same feat.


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).


Also consider Alt+F, Alt+F.

(push Alt and hold it, now while holding it press F and then one more time F).

This will open the Recent Files menu. There, you you use the arrow keys to select a file and open it by hitting Enter, or just use your mouse.

enter image description here


You can with the Visual studio Power Commands using Ctrl + Shift + Z


If you're using VS 2008, PowerCommands offers 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.


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.


in VS 2010 "PowerCommands for Visual Studio 2010"

http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99/

Adds a command "Undo Close"


You can actually do this (at least in Visual Studio 2019) by pressing Ctrl+T,R which opens a little window which shows the last opened windows.

Source

As NotAPro pointed out, the combination I mentioned seems to have changed to Ctrl+1,Ctrl+R