Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

While there were various ways of re-opening closed tabs in Visual Studio 2010 and Visual Studio 2012, it appears that those plug-ins have not evolved into the Visual Studio 2013 add-in world.

Since the Productivity Power Tools gallery page specifically mentions "Visual Studio Professional 2012 (and above)" (emphasis mine), I tried installing it, but it isn't finding VS 2013 as an eligible target. I'm guessing "above" refers to the product tiers of Visual Studio 2012.

No Visual Studio 2013 option on Productivity Power Tools install

Looking at the Q&A on that same page shows a lot of requests for 2013 support as well.

Is there a method of adding undo-close functionality to Visual Studio 2013, either built-in or using a new/updated add-in?

like image 282
patridge Avatar asked Nov 08 '13 16:11

patridge


People also ask

How do I reopen a closed tab in Visual Studio?

Right-click on Tab, and select “Restore Closed Tab“. Alternatively, you can use the keyboard shortcut Ctrl+K, Ctrl+Z to reopen the closed file. Restore Closed Tab will bring up the last closed files without losing your focus on any other part of Visual Studio IDE.

How do I redo a closed tab?

Chrome keeps the most recently closed tab just one click away. Right-click a blank space on the tab bar at the top of the window and choose Reopen closed tab. You can also use a keyboard shortcut to accomplish this: CTRL + Shift + T on a PC or Command + Shift + T on a Mac.

How do I undo a closed tab or a code?

In Visual Studio 2020 you can use Shift + Ctrl + T , which is associated with Reopen Closed Editor. This should do what you're expecting. You are speaking of VS Code. In VS Code the default is: { "key": "ctrl+shift+t", "command": "workbench.

How do I reopen my last closed window?

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.


2 Answers

Productivity Power Tools 2013 is now available for Visual Studio 2013.

Along with a bunch of other features, it still offers Edit.UndoClose functionality as previous version had.

You can find the command under Tools->Options and give it whatever shortcut you want (Ctrl+Shift+T, in this case, to make it like a web browser re-open tab shortcut).

Edit.UndoClose command in Visual Studio 2013 by way of the Productivity Power Tools 2013

like image 186
patridge Avatar answered Oct 13 '22 20:10

patridge


Ctrl+- should jump you back into the tab you closed. You may have to do that several times.

Also ALT+F+F is a quick way to jump to recent files, your file might be there. Keep holding ALT while pressing F twice.

like image 28
Dumisani Avatar answered Oct 13 '22 22:10

Dumisani