Visual Studio 2010 Editor UndoHistory

I am trying to write an extension that can access the TextUndoHistory of VS editor.

Should I implement ITextUndoHistory and ITextUndoTransaction myself or is there something that I can connect to using the SDK?

Thanks Nick

+1
source share
1 answer

You import ITextUndoHistoryRegistry from the [Export] ed MEF component and call TryGetHistory to get the history for this buffer. See. MarginFactory.cs of my FixMixedTabs extension for example (in the same expansion InformationBar.cs shows how to create a transaction history canceled).

+3
source

Source: https://habr.com/ru/post/1397143/


All Articles