Skip to content

Regression: Ctrl+Enter not running current line in the editor #1875

Closed

Description

  • VS Code version: 1.23.1
  • Extension version (available under the Extensions sidebar): 2018.05.0
  • OS and version: Windows 10

n the previous release, following #1349, Ctrl+Enter worked in the editor with and without a selection.

With the May release, Ctrl+Enter works for a selection, but not without a selection, in which case it inserts a new line after the current line.

Perhaps this is a side effect of another keyboard binding interfering? It looks like the "Insert Line Below" command is taking precedence.

Activity

  1. added
    bug
    on Jun 6, 2018
  2. d3r3kk commented on Jun 11, 2018

    @d3r3kk

    Verified that this is being ignored in favour of 'Insert Line Below' in VSCode:

    ctrl_enter_not_working_as_expected

    It works if you use the command palette to run the command, but it does not work with the stated hotkey Ctrl+Enter.

  3. DonJayamanne commented on Jun 11, 2018

    @DonJayamanne

    How about going with ctrl+alt+enter?
    This key binding works only for Python files (in the editor window).

  4. qubitron commented on Jun 13, 2018

    @qubitron

    I'm not seeing anything for Shift+Enter: https://code.visualstudio.com/docs/getstarted/keybindings

    Don Jayamanne (@DonJayamanne) were you seeing shift+enter taken on the mac?

  5. DonJayamanne commented on Jun 13, 2018

    @DonJayamanne

    Nothing, that feels like a better option (one less key).

  6. locked as resolved and limited conversation to collaborators on Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions