insertLineAndIndent
insertLineAndIndent(
editor,eol?):boolean|undefined
Defined in: extensions/commands/commands.ts:129
Command that inserts a new line replacing the current selection unless the editor is
readOnly. It uses the autoIndent behavior of the current language to determine
whether to preserve the indentation or increase it.
Parameters
Section titled “Parameters”editor
Section titled “editor”Editor to execute the command on.
boolean
If true, the new line is inserted at the end of the line instead of at
the cursor’s position.
Returns
Section titled “Returns”boolean | undefined