User Interface Specification:
Start New Line & Split Line actions

Author: Gabriel Tichy
$Revision: 1.1 $
Table of Contents:


This specification describes two simple keyboard actions: Start New Line, Split Line. These actions are useful variations of the Insert newline action.

Detailed Specification

Two global editor actions are introduced:

Name Shortcut Action name
Start New Line Shift+Enter [start-line]
Split Line Ctrl+Enter [split-line]

Shift+Enter In Action



  • adds a new line and moves caret on that; in fact it means: move the caret to end of line and insert new line then.
  • original line is not affected at all
  • apparently, indentation works as usually

Ctrl+Enter In Action



  • splits the line on a position of the caret, i.e. it behaves like normal Enter, but without moving of the caret
  • apparently, indentation works as usually


Undo is working exactly in the opposite direction for both actions.


Project Features

About this Project

ui was started in November 2009, is owned by Jiří Kovalský, and has 45 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm