Why doesn’t visual studio do anything when I press CTRL-Z the first time

undovisual-studio-2008

Maybe it's only this way in my instance, but maybe not. When I'm editing an ASPX file in Visual Studio 2008 and I press CTRL-Z to undo, nothing happens. Then I press CTRL-Z a second time and it does what it's supposed to do.

There is a flicker the first time I undo, so maybe something IS happening. Maybe it's by design and I should be happy it's undo-ing that first thing.

Best Answer

Whenever Visual Studio does any auto-formatting it saves that formatting step in the undo history (thus allowing you to undo the auto-formatting step if you so choose). Most likely the first undo is undoing that auto-formatting step.