Edit Read-Only Files

Tips Search

Edit Read-Only Files

  • Comments 8

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:

image

 

 

If you make changes and try to save them you will (by default) be met with the "Save of Read-Only File" dialog:

image

 

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:

image

 

 

Now if you attempt to make any changes to a read-only file you will see the "Edit of Read-Only File" dialog:

image

 

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.

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

  • :)

  • 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.

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

    social.msdn.microsoft.com/.../vsts

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

  • It's simple: File | Source Control | Go online ...

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

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

Page 1 of 1 (8 items)
Leave a Comment
  • Please add 8 and 8 and type the answer here:
  • Post