Visual Studio 2022 Tips: Quickly Reopen the Closed Files

Visual Studio 2022 Tips: Quickly Reopen the Closed Files

Have you accidentally closed a source code file and then realized you need it back? The option was to go back to solution explorer, find the file and reopen it. Not a difficult job, but sometimes it becomes! You have a more comprehensive solution and also when you are in a hurry to get something done. Visual Studio 2022 allows Reopening the last document you have closed quickly.

Quickly Reopen the Closed Files – Visual Studio 2022

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.

Reopen the Closed Files in Visual Studio 2022
Reopen the Closed Files in Visual Studio 2022

Restore Closed Tab will bring up the last closed files without losing your focus on any other part of Visual Studio IDE.

If you want to bring back multiple closed documents, you can follow the same approach, and Visual Studio will bring up one by open document closed in the sequence.

Reopen the Closed Files in Visual Studio 2022
Reopen the Closed Files in Visual Studio 2022

Related Tip: Fast track Debugging using Dependent Breakpoint in Visual Studio 2022

Related to this Post, There is one more great feature that Visual Studio has since long back – “Keep Track of your active files inside Solution Explorer

While working in a large Visual Studio Solution with several numbers of projects, keeping track of currently active/working files is problematic. Tracking this will help us understand where we are on the solution or which layer we are currently working on. If we can’t follow it automatically, we must scroll through the entire solution explorer to find the files or search for a specific file inside the solution explorer.

TrackActiveDoc

You can read about the details post here.

1:1 Career Coaching with Abhijit

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

One Comment to “Visual Studio 2022 Tips: Quickly Reopen the Closed Files”

Comments are closed.