newlineInCode inserts a new line in the current code block. If a selection is set, the selection will be replaced with a newline character.
newlineInCode
editor.commands.newlineInCode()