So, up until I installed VS2012, when I tried to edit a read only file in VS2010, a dialog popped up giving me three options when I pressed Save:
Suddenly, it has stopped offering these options. Is there a way to put it back without popping up the save dialog every time and then telling me the file is read only.
I think this maybe source control related but the projects I'm using is not bound within the IDE to source control, just that the file is in source control
Go to Tools | Options | Environment | Documents and uncheck the option called "Allow editing of read-only files; warn when attempt to save." Now, when you start to make changes a read only file you'll get that dialog box asking if you want to create a new file, make the file writeable, or cancel.
In Windows: Open file in explorer, hit >Properties > Read only. Done.
Rather than hack the registry I simply selected "None" in the Tools>>Options>>Source Control>>Plug-in Selection.
I recently had the same problem with Visual Studio 2013. I solved the problem by editing the registry:
Not sure why this works. I figured it may have something to do with source-control integration given this persons post at: http://social.msdn.microsoft.com/Forums/vstudio/en-US/4e4c1878-3901-425e-a454-2c0d628275b0/when-saving-a-modified-readonly-file-it-always-pops-up-save-as-dialog?forum=vseditor where he solved the problem by disabling a Mercurial plugin.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With