Skip to content

Shift+Enter doesn't fully run code when last line of code is indented #2167

Closed

Description

Environment data

  • VS Code version: 1.25.1
  • Extension version (available under the Extensions sidebar): 2018.7.0-beta
  • OS and version: macOS High Sierra
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: NA

Actual behavior

If the last line of code was indented, and you select multiple lines and press shift+enter, the indentation is left hanging in the console, even if you select a blank line/multiple blank lines to send

screen shot 2018-07-16 at 2 59 19 pm

screen shot 2018-07-16 at 2 59 25 pm

Expected behavior

If blank lines are selected, send them to the console so that the code runs without having to click in the console and press enter

Steps to reproduce:

Select code in an indented block, as shown above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions