开发者

Visual Studio 2010 does not reload open files

Prior to today, if I quit VS2010 and reopened it, my previously opened solution was loaded and any previously opened files were reloaded and displayed in their correct positions.

Now however, the solution is reope开发者_运维问答ned but no files are reloaded. All the files I had open are closed.

I didn't change any settings or do anything specific to stop this behavior. Looking through the options dialog panels, I do not see anything that applies to this behavior.

What gives?


This happened to me as well, but I didn't want to reset all my settings. So here are a couple things to try before that:

  1. Export your settings (Tools -> Import and Export Settings) and open the resulting file in a text editor. Search for a section starting with <Category name="Environment_WindowLayout". In my file, there were two places with a riduculous amount of duplicate <ViewBookmark entries. I deleted all but one in both places then I imported this file into VS and it fixed it for me. Note: I re-imported everything.

  2. Along the same lines as above, I read a post about exporting your current settings and then importing the resulting file but excluding window layouts (All Settings -> General Settings -> Window Layouts).


Resetting VS2010 settings (in Tools choose Import and Export Settings) and deleting the suo file fixed the issue.


You may have somehow lost your .suo file. Did you move your solution or anything?


Resetting VS2010 General settings (in Tools choose Import and Export Settings) and deleting the suo file, while the project has been opened, fixed the issue.


I tried everything described above but in the end it was doing a full reset in VS2010 General settings (in Tools choose Import and Export Settings) that sorted me out ;-(


To confirm answers that HiredMind and valverij have contributed - I opened a previously exported settings file in VS 2013, executed Edit -> Advanced -> Format Document, then searched for and deleted all of the ViewBookmark tags where ViewBookmarkType="DocumentWell". I then saved, closed and imported that settings file. It worked! VS now (again) reopens the previously opened documents when I open a solution. Thanks.


I, too, tried editing my .vssettings file. I deleted a lot but was afraid to delete too much. What worked for me was to copy an old .vssettings file and use that instead of the recent one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜