You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing an extension which is purposed to allow users to extract some text from an opened document and put those content into a new code window.
I now uses DTE.ItemOperations.NewFile to create an empty new code window then uses the ITextView.TextBuffer.CreateEdit() method to insert text there.
However, that will cause the inserted text could be removed if a user presses Ctrl+Z, also the track margin indicates the inserted text. Is it possible to prevent that from happening?
The text was updated successfully, but these errors were encountered:
I am writing an extension which is purposed to allow users to extract some text from an opened document and put those content into a new code window.
I now uses
DTE.ItemOperations.NewFile
to create an empty new code window then uses theITextView.TextBuffer.CreateEdit()
method to insert text there.However, that will cause the inserted text could be removed if a user presses Ctrl+Z, also the track margin indicates the inserted text. Is it possible to prevent that from happening?
The text was updated successfully, but these errors were encountered: