50

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

6 Answers 6

77

Tools -> Options then change the Startup option.

enter image description here

More Details Check this link

0
11

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

Tools / Options / Startup / Most recent solution

enter image description here

8

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

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

2

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

3
  • how can you create a shortcut to the most recent solution?
    – bolov
    Aug 29, 2014 at 6:06
  • I misread the question slighty. :S I normally have 3-4 solutions on the go at any one time, so in my case shortcuts are easier rather than loading last one. But alas the question was not about this.
    – ne1410s
    Aug 29, 2014 at 6:13
  • no worries for the missread +1(i din't gave you -1) because it's still a fine alternative.
    – radbyx
    Aug 29, 2014 at 6:16
2

you go into tools-> options -> Environment -> StartUp.

Then there is an option in the "At Start Up" dropdown to load last loaded solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.