Skip to content

Shift-enter should also advance cursor to the next line #13495

@arencambre

Description

@arencambre

When I hit shift-enter, I am intending to run the current line or selection. I would like for the Python extension to also advance the cursor to the next line.

Advancing the cursor to the next line is just helpful. It is not common that I wish to re-run the current line after pressing shift-enter. More typically, I want to run several lines in a row. Allowing shift-enter makes this more intuitive.

This should also apply even when you are running multiple, selected lines. It will necessarily cause the selection to be un-selected since the cursor will need to move to the line right after the end of the selection. In my experience, it is rare that I would want to manually, repeatedly run multiple, selected lines. Rather, the most common occurrence currently is, after I hit shift-enter, I have to down-arrow through the end of the selection to run the next desired line. Because the selection disappeared as soon as I hit down-arrow, I lose the obvious, visual reference for end of line, which makes it even harder. If the cursor just went to the first line after the selection, that would be helpful.

RStudio has the same "skip to the next line after shift-enter" behavior. I find it useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions