I\'ll be coding along in Visual Studio 2008, and eventually I make a mistake. I press CTRL - Z to undo and NOTHING HAPPENS. I\'m not talking about anything
I had the same problem recently. I think it was caused by an exception in ReSharper (these are shown in the status bar of Visual Studio), at least ReSharper showed a message box to submit some errors to JetBrains at around the same time.
If you experience this problem again, verify whether ReSharper shows any errors/exceptions, and if it does, you might want to submit them to JetBrains.
After restarting Visual Studio, undo worked again (for me).
If the other solutions don't work
I think a common problem is that keyboard bindings get changed somehow. It's easiest just to go and reset them like this:
Tools -> Options -> Environment -> Keyboard -> Reset -> OK
If anyone is still following this, Undo disables for me when I try to Ctrl+Shift+Enter
to jump to a new line.
I am using VS2008 Pro, WinXP, editing an XSLT file. Resetting keyboard settings does not help. AnkhSVN installed but not in use.
I had this in visual studio 2008SP1 - one day the undo function just completely stopped working. Looking at a previous posters comment, i just did :
Tools -> Option -> Environment -> Keyboard Press Reset
After restarting visual studio, undo now works.
I would check out your clipboard ring and watch and see when/if it gets cleared out. If that ever happens you'll know you just lost your undo. Also, if you can see it happen then you might have a better chance of identifying what is causing it.
I have observed that the undo option is being disabled when I press CTRL + ENTER accidentally, and I fixed this by removing this hotkey.
To do this go to : Tools -> Option -> Environment -> Keyboard
and remove Edit.LineOpenAbove
shortcut.