Share via


Message "File has been modified outside of source editor. Do you want to reload it?"

Question

Monday, December 11, 2006 10:18 PM

I keep getting this message within various Visual Studio projects as I am working on them. It happens every time I try to save the current document (Ctrl+S) after making a change to the code.

I verified that I do not have this .vb document open elsewhere in my solution, nor is it open within any other solution running on my machine. I also ensured that Visual SourceSafe code control is not active.

Does anyone know why I keep getting nagged with this message?

Thanks in advance,

kewpcg

All replies (10)

Tuesday, December 12, 2006 4:26 AM âś…Answered

A blind way of overcoming this problem could be Enabling the Auto-load changes. This could be done as follows:

Tools -> Options
In the Options dialog box, select Environment -> Documents

Check the 'Auto-load changed, if saved' option under 'Detect when...'

Will get back to you if I can get a more proper answer.

Reg,
Venkat


Monday, June 7, 2010 2:39 PM | 4 votes

I fixed my issue by right-clicking the file in question and choose "Exclude from project", then include it again.


Tuesday, September 28, 2010 3:47 PM

thanks dude!!!!

this information is really helps me a lot in my pproject....

Once again thanks ..........

 


Friday, March 18, 2011 6:08 PM

Thank you.

I was having the same problem and right-clicking and excluding and then re-including worked for me.


Monday, March 5, 2012 2:47 AM

i has meet the problem, thanks very much for the solution


Tuesday, March 6, 2012 9:35 AM | 1 vote

I too gone through this issue, but excluding and including doesn't worked for me.

I got the msg "The file has been modified outside of the source editor. Do you want to reload it?"

for this, you should close the file. on which changes are made., then it will not promt the message.

Thanks n Regards-

Anita Chauhan.


Tuesday, April 2, 2013 12:51 PM

I have the same issue when opening a database (SQL Express 2008 R2) in VS 2012 (a web site project). Other files do not have the issue. I tried all suggestions in this post but none of them worked. Sounds like it is an really old bug since 2006 that still exists.

Tomz


Tuesday, May 6, 2014 1:07 PM

Excluding the file from the project and including it back into the project works like a charm! Thanks for the solution guys.


Wednesday, July 29, 2015 10:29 AM

I am suing visual studio 2013 for Nodejs development. I was facing this problem when changing my CSS file. I have tried the above solution and none of the works form me. i have tried, 

  1. Check the 'Auto-load changed, if saved' option under 'Detect when...' in 
    Tools -> Options-> Environment -> Documents
  2. Excluding from project and include back does not work for me 

None of these solutions works! sorry. 

The solution works for me , is ,created a new css file and paste the content to the old css file to the new file. 

or Rename the css file from style.css to mystyle.css. 

Thanks!


Tuesday, May 24, 2016 9:17 AM | 1 vote

I still couldn't get rid of this dialog despite changing the setting in options so I wrote an AutoHotKey script to get rid of it and reload always.

Download AutoHotKey

Create a text file with the following content

Loop{
    WinWait,File Modification Detected
    WinActivate,File Modification Detected
    Send !a
}

Save as stupid_annoying_popup_go_awayer.ahk 

Run it with AutoHotKey

Viola!  

Will auto-reload even if the popup gets "trapped" like on my system when I use VirtuaWin Virtual Desktop Interface.