How can I refresh files that have been changed outside of Visual Studio?

I was editing a file simultaneously in both Visual Studio & Notepad++ (I know, I know, it's a silly thing to do, I know). After saving changes made with Notepad++, how can I refresh Visual Studio to see those changes?

2

1 Answer

To refresh the change file automatically, we need to change a setting. Open Visual Studio, choose 'Tools' from menu bar Alt + T. Go to Options > Environment > Documents. Enable these two options

  1. Detect when file is changed outside the environment
  2. Reload modified files unless there are unsaved changes

visual_studio_required_options

The second choice is optional. Press OK. Restart Visual Studio if needed.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like