Represents a text editor's options

Implements

Constructors

Properties

_cursorStyle: TextEditorCursorStyle
_indentSize: number | "tabSize"
_insertSpace: boolean
_tabSize: number
id: string

Accessors

  • get insertSpaces(): string | boolean
  • 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".

    Returns string | boolean

  • set insertSpaces(val): void
  • 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".

    Parameters

    • val: string | boolean

    Returns void

  • get tabSize(): number
  • The size in spaces a tab takes. This is used for two purposes:

    • the rendering width of a tab character;
    • the number of spaces to insert when insertSpaces is true.

    When getting a text editor's options, this property will always be a number (resolved). When setting a text editor's options, this property is optional and it can be a number or "auto".

    Returns number

  • set tabSize(val): void
  • The size in spaces a tab takes. This is used for two purposes:

    • the rendering width of a tab character;
    • the number of spaces to insert when insertSpaces is true.

    When getting a text editor's options, this property will always be a number (resolved). When setting a text editor's options, this property is optional and it can be a number or "auto".

    Parameters

    • val: undefined | string | number

    Returns void

Methods