Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

save visual studio state

Is there any way to save the "state" of VS 2008 (i.e. open windows, breakpoints, bookmarks, etc.) without closing it? The pain point I'm facing is that VS 2008 crashes on me on a fairly frequent basis (every few days) and when I bring it up I've lost all my "state". Save All does not do this... it just saves file contents.

like image 201
JoelFan Avatar asked Jul 02 '09 14:07

JoelFan


2 Answers

Here is what i do and it seems to work for me,

  • Open a single instance of visual studio.
  • Set all the window positions as you would want them.
  • Close visual studio.
  • From now any instance you open should follow those settings.

It get a bit messy when you have multiple windows open and change some settings on one of them and other setting on the other one. the key is to have a single window open when you are making your personalization and close it as soon as you are done.

like image 123
kay.one Avatar answered Nov 08 '22 00:11

kay.one


Any chance you have your solution.suo or project.csproj.user files under version control?

Both of these file types should not be version controlled, e.g. in Subversion you would set svn:ignore property for *.suo and *.user file types in the directory they belong to.

I believe they hold your workspace state info.

like image 42
si618 Avatar answered Nov 08 '22 00:11

si618