TextEditorOptions

Properties

Link copied to clipboard
abstract external var cursorStyle: TextEditorCursorStyle?

The rendering style of the cursor in this editor. When getting a text editor's options, this property will always be present. When setting a text editor's options, this property is optional.

Link copied to clipboard
abstract external var indentSize: JsAny?

The number of spaces to insert when insertSpaces is true.

Link copied to clipboard
abstract external var insertSpaces: JsAny?

When pressing Tab insert n spaces. When getting a text editor's options, this property will always be a boolean (resolved). When setting a text editor's options, this property is optional and it can be a boolean or "auto".

Link copied to clipboard
abstract external var lineNumbers: TextEditorLineNumbersStyle?

Render relative line numbers w.r.t. the current line number. When getting a text editor's options, this property will always be present. When setting a text editor's options, this property is optional.

Link copied to clipboard
abstract external var tabSize: JsAny?

The size in spaces a tab takes. This is used for two purposes: