Tuesday, September 30, 2008

Annoying Visual Studio Behavior (Auto format stops working)

Of late I have had this annoying thing happen to my Visual Studio 2005 environment where it stops formatting my code for me. So would call me lazy… J I am… I had tried resetting the environment to be a Visual Basic Env etc… etc… nothing worked.

 

To fix it I found a link to an MSDN forum:

 

http://social.msdn.microsoft.com/Forums/en-US/csharpide/thread/870c32f4-464b-4701-986a-290fc996a570/

 

 

Short Version:

Reset the environment completely…

 

AdamPe States:

“You need the /resetuserdata Switch

1.       Shut down all instances of Visual Studio 2005.

2.       Click Start, the choose Run....

3.       Type "devenv.exe /resetuserdata".

Easy when you know how!!”

More details here:
http://msdn2.microsoft.com/en-us/library/bb245788(vs.80).aspx

 

No comments: