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

Wrong indentation style (size) auto-detection #938

Copy link
Copy link
Closed
@Eugenii10

Description

@Eugenii10
Issue body actions

Environment data

  • VS Code version: 1.20.1
  • Python Extension version: 2018.1.0
  • OS and version: Windows 10 build 1607
  • Python Version: 2.7.13
  • Relevant/affected Python packages and their versions: none

Actual behavior

VS Code incorrectly determine indentation style as 8 spaces.
actual

Expected behavior

VS Code determine indentation style as 4 spaces.
expected

Steps to reproduce:

  • Launch VS Code
  • Open Untitled-1.py from the attached archive below
    project.zip

Logs

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

##########Linting Output - pylint##########
No config file found, using default configuration
##########Linting Output - pylint##########
No config file found, using default configuration

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

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

1520088556010.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue 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

    No 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.