Refactor Indent Detection to set indentSize
to auto
rather than tabSize
#203504
Labels
debt
Code quality issues
editor-indent-detection
Issues around the guessing of indentation for files
I can tell that VSCode historically used
tabSize
and noindentSize
.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 useindentSize
(such as #193811). Problems arise with this inconsistency, such as(With a whopping (0) upvotes, this bug report will soon get archived as a not-planned feature. At least all but the 2nd bullet point would surface when Add support for mixed tab/spaces indentation #5394 gets attention.)
solving Can't set tabSize and indentSize separately #199791 by working the problem around with a new attribute
originalIndentSize
(and merged with no discussion).Request: Finish this mess up and migrate Indent Detection from
tabSize: 'auto'
toindentSize: 'auto'
.Background: I indent with spaces, yes, but I like my tabs extra long for, well,
tab
ulation, that’s what ‘tab’ stands for.(Really, if
indentSize
is still half-baked, why is it in production (stable versions) already?)vscode/src/vs/editor/common/model/textModel.ts
Line 678 in 8b37750
The text was updated successfully, but these errors were encountered: