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 (8)

  1. oreo17 says:

    Well, now it's all clear to me.  I'm glad I read your article.

  2. fennoo says:

    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.

  3. zainnab says:

    fennoo — that sounds like a server-side issue perhaps.  Did you try the TFS forums?


  4. Harald-René Flasch says:

    Even "Tools | Options" > Environment "Check out automatically" is set for Save and Edit that settings are ignored. Any suggestion about that?

  5. hfrmobile says:

    It's simple: File | Source Control | Go online …

  6. Sibananda says:

    Thank you so much for this info .I am facing lot of problem regarding this issue …

  7. Brijesh says:

    Thank you, it help me to remove readonly attrib from whole project

Skip to main content