Describes what to do when pressing Enter.

Hierarchy

  • EnterAction

Index

Properties

Optional appendText

appendText: string

Describes text to be appended after the new line and after the indentation.

indentAction

indentAction: IndentAction.None | IndentAction.Indent | IndentAction.IndentOutdent | IndentAction.Outdent

Describe what to do with the indentation.

Optional outdentCurrentLine

outdentCurrentLine: boolean

Describe whether to outdent current line.

Optional removeText

removeText: number

Describes the number of characters to remove from the new line's indentation.