lib/actions/insert-line-break.js
function insertFormattedLineBreak(cursor) {
	const indent = cursor.editor.getTabText();
	const lineIndent = getLineIndent(cursor);

	cursor.selection.insertText(`\n${lineIndent}${indent}\n${lineIndent}`, { autoIndent: false });

	// Put caret at the end of indented newline
	cursor.moveUp();
	cursor.moveToEndOfLine();
}
function insertFormattedLineBreak(cursor) {
	const indent = cursor.editor.getTabText();
	const lineIndent = getLineIndent(cursor);

	cursor.selection.insertText(`\n${lineIndent}${indent}\n${lineIndent}`, { autoIndent: false });

	// Put caret at the end of indented newline
	cursor.moveUp();
	cursor.moveToEndOfLine();
}
function insertFormattedLineBreak ( cursor ) { const indent = cursor . editor . getTabText ( ) ; const lineIndent = getLineIndent ( cursor ) ; cursor . selection . insertText ( ` \n ${ lineIndent } ${ indent } \n ${ lineIndent } ` , { autoIndent : false } ) ; // Put caret at the end of indented newline cursor . moveUp ( ) ; cursor . moveToEndOfLine ( ) ; }
Inserts formated line break for given cursor
@param  {Cursor} cursor
Inserts formated line break for given cursor