Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TextEdit

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

Hierarchy

  • TextEdit

Index

Methods(4)

Constructors(1)

Properties(3)

Methods(4)

Static replace

  • Utility to create a replace edit.

    Parameters

    • range: Range

      A range.

    • newText: string

      A string.

    Returns TextEdit

    A new text edit object.

Static insert

  • 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.

Static delete

Static setEndOfLine

Constructors(1)

constructor

Properties(3)

range

range: Range

The range this edit applies to.

newText

newText: string

The string this edit will insert.

Optional newEol

newEol: EndOfLine

The eol-sequence used in the document.

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

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网