How to open last solution automatically when starting Visual Studio?

How do you set Visual Studio to automatically open "the last open solution" when it starts?


Solution 1:

Tools -> Options then change the Startup option.

enter image description here

More Details Check this link

Solution 2:

In Visual Studio 2019 the option is slightly different. Select:

Tools / Options / Startup / Most recent solution

enter image description here

Solution 3:

I'll add solution for Visual Studio Code: use this flag in shortcut:

"C:\Program Files\Microsoft VS Code\Code.exe" --reuse-window

VS Code command arguments

Solution 4:

We seem to be playing who moved my cheese. In Visual Studio 2022 the setting is in a new place. It's located at Tools / Options / Environment / General

enter image description here

Solution 5:

I would simply create a shortcut to your .Sln file, and run that.