Skip to content

Editor indentation autodetection not working and manually set indentation keeps getting reset #6447

@mschuckmann

Description

@mschuckmann
  • VSCode Version:1.1.1
  • OS Version: Ubuntu 15.10 64bit

Steps to Reproduce:

  1. User settings set like so:
    "editor.tabSize": 2,
    "editor.insertSpaces": true,
    "editor.detectIndentation":true,
  2. Open a C/C++ project with 4 space indentation.
  3. Open a file in the project, observe on the status bar Spaces:2 (expected: Spaces: 4)
  4. Click on the Spaces:2 setting in the status bar and select "Detect Indentation from Content".
  5. Observe that the status bar now says Spaces: 4.
  6. Switch to a different file with indentation of 4 spaces, it doesn't seem to matter.
  7. Observe that the status bar now say Spaces: 2 (expected: Spaces: 4)
  8. Switch back to the original file, observe that the status bar still stays Spaces: 2 (expected: spaces 4)

I've seen similar behavior with Makefiles and tabs, I manually switch to tab mode and every time I toggle back and forth from another file the tab mode is reset to spaces.

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions