Reopen documents on Reload after file modification detected

Goran 1 Reputation point
2022-05-28T13:37:48.783+00:00

I want to switch from VS2019 to VS2022, but I have a problem with reopening documents on reload on external change.

After external modification of the file is detected, it will offer to reload
206413-reload.jpg

In VS2019 opened documents (tabs) remain after reload, but in VS2022 all documents are closed!
It normally reopens documents on normal solution load.

Is this a bug or I'm missing a preferences check?

Developer technologies Visual Studio Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,436 Reputation points Microsoft External Staff
    2022-05-30T09:21:30.08+00:00

    Hi @Goran ,

    Welcome to Microsoft Q&A forum.

    If you select following two options, will it work?

    1. Tools > Options > Projects and Solutions > General > Reopen documents on solution load.
    2. Tools > Options > Environment > Documents > Detect when file is changed outside the environment > Reload modified files unless there are unsaved changes.

    If they don’t work, could you tell me the detailed version of Visual Studio 2022 that you are using, and please check this issue in a simple created project, and let me know if it is reproducible. If it is reproducible, could you also share me the steps to reproduce this issue?

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

  2. Goran 1 Reputation point
    2022-05-31T14:01:32.473+00:00

    Thank you Tianyu.

    Both options are selected, so that's not the issue. Maybe I didn't explain the problem well... it doesn't appear when editing the files themselves, but when adding or deleting source files to the project.

    These are currently the latest versions of the visual studio community, and the Projucer ( https://juce.com ) is used for external project management (C++).

    Here is a short video that will clearly show what it is about

    https://youtu.be/zXfvbTR3LY0

    project https://github.com/gopo9/VS-test


  3. Goran 1 Reputation point
    2022-06-16T13:31:33.027+00:00

    It seems that it have been fixed in the last update, it behaves the same as the VS2019!

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.