Skip to content

Latest commit

 

History

History
79 lines (35 loc) · 1.02 KB

File metadata and controls

79 lines (35 loc) · 1.02 KB
description
Represents a text editor window.

TextEditor

A TextEditor object refers to an open text editor in CodeEdit. It should not be confused with a TextDocument object, which is a property of the TextEditor.

Class Methods

delete(range: Range): TextEdit
insert(position: Position, newText: string): TextEdit
replace(range: Range, newText: string): TextEdit

Constructor

new TextEdit(range: Range, newText: string: TextEdit)

Methods

Properties

document: TextDocument

The document associated with the text editor.

options: TextEditorOptions
selections: Selection[]

Events

onDidSave(callback)