@monsterfox Actually, the replacing of an opened file is a feature. One can change the file form some other tool and if the file was not modified in VS, it will be automatically updated when VS gets to foreground.
(BTW: you can save a VS file into JSON or XML format, and edit it with a text editor , and if the file is open in VS it is automatically updated )
I will have to check the delete part.