Visual Studio saves the files that you opened for the project settings when you close the project / solution. The next time you open it, they will be open by default. VS does not contain the exact behavior that you describe, but you can find a plugin that will do this for you, or write it yourself.
source
share