Skip to content

Unexpected 2-spaces indent detection despite of predominant 4-spaces usage #249040

Open
@mirunaGeo

Description

@mirunaGeo
  • VS Code Version: 1.95
  • OS Version: Linux x64 5.15.0-139-generic

When Editor: Detect Indentation is enabled and there are some areas indented using 2 spaces, VSCode detects a 2-space indentation even when the file is mostly indented with 4 spaces.

Image

This doesn't happen for other pairs of values such as {3, 6} or {4,8}.
Is there any reason for choosing 2 spaces over 4? Why does this happen only for the {2, 4} pair?

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-autoindentEditor auto indentation issueshelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions