Skip to content

Cmd+Enter in Smalltalk editor to start a new line above the current line #5

Open
@j4yk

Description

@j4yk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement[WHAT] New feature, idea, conceptprogrammer[SCOPE] It is for the (maybe professional) programmertools and libraries[SCOPE] From #asTextToHtml over JSON parsing to Debugger and Browser.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions