Visual Studio 2008 will not edit read only files

So, up until today, when I tried to edit a read only file in VS2008, a dialog popped up giving me three options:

  • Edit in memory
  • Make writable
  • Save a copy

There was also a checkbox which read "Never allow in memory edits".

Suddenly, it has stopped offering these options and simply will not accept any input in the editor window if the file is read only. I have to go into windows explorer and mark the file as not read only then reopen it in VS before I can make any changes. I'm working on a large project, with lots of source controlled files and often need to make local only changes to files, so this is a real PITA.

I'm guessing I must have checked the never allow in memory edits checkbox by mistake.

There is an option in Tools.. Options.. Environment.. Documents which reads:

"Allow editing of read only files, warn when attempt to save"

This checkbox is ticked, and changing its value currently as no effect. I've tried closing and opening studio, restarting my machine etc - all to no avail.

Anyone know how to restore the previous behaviour?

Answers


In case anyone is interested, resetting the following registry entry to 0 will restore the previous behaviour:

HKCU\Sofware\Microsoft\Visual Studio\9.0\Source Control\UncontrolledInMemoryEditDialogSuppressed

Need Your Help

Implementing GeocodableBehavior in Symfony 1.4 (using Propel)

symfony-1.4 geocoding propel behavior

I'm trying to implement the GeocodableBehavior on a Symfony 1.4 (with Propel 1.6) project i'm working on, but until now it's a complete failure. I've tried to search if other people but I didn't fo...

Custom Exception for ArrayIndexOutOfBoundsException

java exception

I have a custom exception extending Exception, however it does not seem to catch ArrayIndexOutOfBoundsException. But if I change the catch clause to catch Exception instead, it works as expected.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.