3

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
  • I'm not sure. How can I verify that?
    – LongTP5
    Apr 9 '19 at 4:59
  • Yes. The file appears in my soliton, under my project. I have checked it's full path, by right-clicking and selecting properties, to make sure it's the same as the one in Notepad++.
    – LongTP5
    Apr 9 '19 at 5:14
2

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
  • 1
    Unfortunately, your solution doesn't work for me. I notice that the second option, "Reload modified files unless there are unsaved changes," is worded slightly differently than my "Auto-load changes, if saved" option. Perhaps this is an issue specific to my version of Visual Studio?
    – LongTP5
    Apr 9 '19 at 6:17
  • @LongTP5 Try to enable this: Tools > Options > Text Editor > General > Track changes.
    – Biswapriyo
    Apr 9 '19 at 7:47
  • 1
    It's already enabled. Still no change.
    – LongTP5
    Apr 9 '19 at 8:59

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.