VS2008: Disable asking whether to reload files changed outside the IDE

核能气质少年 提交于 2019-11-30 11:11:09

For VS2008: Tools > Options > Documents > Detect when a file is changed outside the environment

For VS2010/2012/2013/2015: Tools > Options > Environment > Documents > Detect when a file is changed outside the environment

In Visual Studio Pro 2012

There is an "Auto-Load changes, if saved" that works.

Tools > Options > Environment > Documents > Detect when a file is changed > Auto-Load changes, if saved

Because a picture paints a thousand words...

I generate source files on every build, and I don't (normally) get a "file has been modified" message if the file is not open in the editor.

I was getting it just now, however, on a closed file. (That's why I went searching for this question.)

I think that's a bug. The file seems to get wedged sometimes. (But this is the first time it has happened in about a year.)

I think I've found a work-around just now: Open the offending file and then close it again.

The point is, you shouldn't need to turn off changed file detection.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!