Visual Studio 2010 does not reload open files

前端 未结 7 2091
野性不改
野性不改 2020-12-28 15:09

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 posit

相关标签:
7条回答
  • 2020-12-28 15:36

    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.

    0 讨论(0)
  • 2020-12-28 15:38

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

    0 讨论(0)
  • 2020-12-28 15:42

    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 讨论(0)
  • 2020-12-28 15:51

    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).

    0 讨论(0)
  • 2020-12-28 15:54

    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.

    0 讨论(0)
  • 2020-12-28 15:59

    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 ;-(

    0 讨论(0)
提交回复
热议问题