Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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)