Describes what to do when pressing Enter.

interface EnterAction {
    appendText?: string;
    indentAction: IndentAction;
    removeText?: number;
}

Properties

appendText?: string

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

indentAction: IndentAction

Describe what to do with the indentation.

removeText?: number

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