As a programmer I would like to have a convenience shortcut to start a new line of code above the current line without leaving the keyboard or having to use the cursor keys to first get to the right position to start a new line above.
When automatic indentation is enabled, the newly opened line should be indented as appropriate to the line above.
Example:
line one.
lin|e two.
^---- cursor
Press Cmd+Enter (or a similarly reachable shortcut):
line one.
|
^---- cursor
line two.
The behavior should be roughly equivalent to moving the cursor to the end of the line above the current one, then pressing Enter.
Eclipse has a similar shortcut. In vim it exists as the command O. It can be useful at times, for example if you want to introduce temporary variables or want to add a comment above the current line.
As a programmer I would like to have a convenience shortcut to start a new line of code above the current line without leaving the keyboard or having to use the cursor keys to first get to the right position to start a new line above.
When automatic indentation is enabled, the newly opened line should be indented as appropriate to the line above.
Example:
Press Cmd+Enter (or a similarly reachable shortcut):
The behavior should be roughly equivalent to moving the cursor to the end of the line above the current one, then pressing Enter.
Eclipse has a similar shortcut. In vim it exists as the command O. It can be useful at times, for example if you want to introduce temporary variables or want to add a comment above the current line.