VS Code API
    Preparing search index...

    Class TextEdit

    A text edit represents edits that should be applied to a document.

    Index

    Constructors

    Properties

    newEol?: EndOfLine

    The eol-sequence used in the document.

    Note that the eol-sequence will be applied to the whole document.

    newText: string

    The string this edit will insert.

    range: Range

    The range this edit applies to.

    Methods

    • Utility to create an insert edit.

      Parameters

      • position: Position

        A position, will become an empty range.

      • newText: string

        A string.

      Returns TextEdit

      A new text edit object.