Managing Undo and Redo by Using the Legacy API
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Editors must support undo operations that let users reverse their recent changes when they modify code. Most editors implemented under Visual Studio and the .NET Framework can have undo support automatically provided by the integrated development environment (IDE).
In This Section
How to: Implement Undo Management
Provides undo capability for editors with single or multiple views.
How to: Clear the Undo Stack
Describes how to clear an undo stack.
How to: Use Linked Undo Management
Incorporates linked undo management into your editor.
Reference
IVsChangeTrackingUndoManager
Provides undo management for an editor that supports multiple views.