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.
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.
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.
You can read about the details post here.
Pingback: Multiple Rows for Tabs in Visual Studio 2022 - Daily .NET Tips