Edit Read-Only Files
Menu: Tools -> Options -> Environment -> Documents
Versions: 2008,2010
Published: 9/15/2010
Code: vstipEdit0074
Make sure to check out the Windows Phone Developer Portal!
When you open a read-only document you will get an indicator that looks like a tiny lock on the file tab:
If you make changes and try to save them you will (by default) be met with the "Save of Read-Only File" dialog:
At this point you can save your changes as another copy of the file, overwrite the existing file, or cancel. If you don't like these options you can turn this feature off by going to Tools -> Options -> Environment -> Documents and uncheck the "Allow editing of read-only files; warn when attempt to save" option:
Now if you attempt to make any changes to a read-only file you will see the "Edit of Read-Only File" dialog:
Edit In-Memory-will allow you to make edits and then display the "Save of Read-Only File" dialog when you go to save changes.
Make Writable-turns off the read-only attribute of the file if possible so it can be edited.
Comments
Anonymous
September 14, 2010
Well, now it's all clear to me. I'm glad I read your article.Anonymous
September 15, 2010
:)Anonymous
October 23, 2010
I'm working on a project that uses Team System and that is connected to a server in my company. When willing to work on at home, i just change the connection string in order to make it connect to my local database. But some files in Visual Studio are Read-Only, although the option "Allow editing of read-only files" is checked. Someone can help me please.Anonymous
December 12, 2010
fennoo -- that sounds like a server-side issue perhaps. Did you try the TFS forums? social.msdn.microsoft.com/.../vstsAnonymous
October 17, 2011
Even "Tools | Options" > Environment "Check out automatically" is set for Save and Edit that settings are ignored. Any suggestion about that?Anonymous
October 17, 2011
It's simple: File | Source Control | Go online ...Anonymous
November 28, 2012
Thank you so much for this info .I am facing lot of problem regarding this issue ...Anonymous
December 20, 2013
Thank you, it help me to remove readonly attrib from whole project