-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indentation detection doesn't work with 3-spaces #17639
Comments
After being more conscience of this issue while working with my code base I noticed sometimes files with 3-space indent do infact have correct indent settings, despite what I described in the issue description. Here is a source file that consistently opens with incorrect indent settings for testing. https://gist.github.com/jiggak/ebe980e4cd209381f2b8c0f8f922344c |
I'm also encountering this problem regularly, would love for it to be fixed. |
I'm encountering this problem too.. |
Happening for me in JavaScript. I set tabs to 3 spaces, and let VSCode auto-format the whole file. Then I set tabs to auto-detect, and it detected 4 spaces. Something's screwy. |
Support odd indentation sizes (fixes #17639)
Steps to Reproduce:
After attempting to debug this it became clear pretty quickly. The
indentationGuesser
is designed to work with 2, 4, 6, and 8 spaces.So is it feasible to make the indentation guesser work with odd-number space indentation? If not there should probably be something somewhere to tell you the indent detection only works with 2, 4, 6, 8 spaces.
The text was updated successfully, but these errors were encountered: