Skip to content

Refactor Indent Detection to set indentSize to auto rather than tabSize #203504

Open
@ParadoxV5

Description

I can tell that VSCode historically used tabSize and no indentSize. indentSize is a relatively new concept ((still) incompletely) introduced in #155450, but Indent Detection (and possibly other features as well) is still in the past and not migrated to use indentSize (such as #193811). Problems arise with this inconsistency, such as

Request: Finish this mess up and migrate Indent Detection from tabSize: 'auto' to indentSize: 'auto'.

Background: I indent with spaces, yes, but I like my tabs extra long for, well, tabulation, that’s what ‘tab’ stands for.

(Really, if indentSize is still half-baked, why is it in production (stable versions) already?)

indentSize: guessedIndentation.tabSize, // TODO@Alex: guess indentSize independent of tabSize

Activity

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

Metadata

Assignees

Labels

debtCode quality issueseditor-indent-detectionIssues around the guessing of indentation for files

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions