Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Single line statements leading to an indentation on the next line #1308

Copy link
Copy link
@brettcannon

Description

@brettcannon
Issue body actions

Environment data

  • VS Code version: insiders
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

sample

Expected behavior

There should be no added indentation.

Steps to reproduce:

  1. Turn on "editor.formatOnType": true
  2. Type e.g. if 1<=2: pass
  3. Press Enter

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

N/A

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

N/A

Metadata

Metadata

Labels

area-formattingbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.