This extension allows to reopen recently closed document tab.
- Right-click one of the opened tabs or go to menu Window
- Choose Undo Close Document
Keyboard shortcut can be set in Tools -> Options -> Environment -> Keyboard command Window.UndoCloseDocument.
Maximum numbers of documents remembered and shown on the list can be set in Tools -> Options -> Undo Close Document -> General.
This extension has to be autoloaded with Visual Studio to work properly. It supports Visual Studio as old as 2013 which means it's loaded synchroniously. In Visual Studio 2019 synchronious autoloading is disabled by default. If you want to use this extension with Visual Studio 2019 you have to Allow synchronous autoload of extensions in Tools -> Options -> Environment -> Extensions.
You can download this extension from Visual Studio Marketplace or GitHub.