Options
All
  • Public
  • Public/Protected
  • All
Menu

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

层级

  • TextEdit

索引

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.

友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场

Generated by TypeDoc. Maintained by 洛竹