Detect Indentation setting removes single space on indent #61442
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-autoindent
Editor auto indentation issues
Milestone
Settings
Detect Indentation
: trueTab Size
: 4Description
Indenting lines that contain a single space (within the indentation whitespaces) will remove the space, i.e. consider the space as part of an indent level.
Background
When minifying HTML output by removing all newlines, a single space is used to separate multiline attributes. Identing present code removes all spaces and breaks it as demonstrated in the above gif.
Proposal
Unless
Tab Size
is set to 1, a single space (within tabs) should not be considered as indentation level and stay untouched while theDetect Indentation
mode is enabled.The text was updated successfully, but these errors were encountered: