Skip to content

How to display a new code window with specific text? #294

Description

@wmjordan

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions