Closed myss closed 7 years ago
There seems to be an object named something like EnvDTE.UndoContext
that has Open(actionLabel)
and Close()
methods as well as an IsOpen
property. But I can't figure out where to get that instance from.
It would likely go into the MacroCommandFilter.Playback
method. Unfortunately I can't try out this extension because Visual Studio 2015 won't start it. (I'd expect it to run it in an experimental VS instance but this one doesn't work.)
I have created a complex macro that includes text inserts, deletions, cut and paste. If I execute the macro and want to undo it, I have to press ctrl-Z multiple times. I think that it would be better if everything would be undone at once.