A listener to the event raised when a text view adapter (IVsTextView) is created and initialized.
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Thetype exposes the following members.
Exporters must mark their export using the following attribute:
For example, to restrict this listener to views of editable text, you would use the following attributes:
[Export(typeof(IVsTextViewCreationListener))] [ContentType("text")] [TextViewRole(PredefinedTextViewRoles.Editable)]
You can use this listener when you want to handle specific keystrokes in your extension. You do this by getting a reference to the text view adapter (IVsTextView) when the text view is created, then using this reference to add a command filter to a view (by using AddCommandFilter).
You can find examples of this interface in the following walkthroughs: