Click here to Skip to main content
15,876,993 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am using VS 2012 to work on a long term project. Used to be, when I saved then opened it at a later date, the editor would keep track of which classes and headers were open at the time (Tabs under ribbon bar).

Something changed. Now when I reopen the editor, the class open tabs are not shown. I don't remember changing things, but anything is possible. Is there a flag somewhere that covers how much is remembered? Where does one go to cause the editor to remember the open classes last displayed.


Updated 2-Mar-15 21:58pm
Sergey Alexandrovich Kryukov 2-Mar-15 18:56pm    
You removed some of the VS files which are not your source code files: *.user, *.suo...
Why would you need to rely on such things? But, between VS sessions, preserve whatever you want.

1 solution

It means VS has got confused - it does it from time to time.

Close VS, and use Windows Explorer to browse to the solution folder.
Go to "Organise", "Folder and search options", and then to the "View" tab.
Select "Show hidden files, folders, and drives" and press "OK"
You should now see some "*.suo" files. Delete or rename them.
Change your view setting back to "Don't show hidden..."
Restart Visual Studio, and it will recreate the files. The next time you open VS after that it should be back to normal and preserving your tabs.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900