Is this option provided by Sublime or some plugin?
I have a file that indentation is guessed wrong (not allowed to be uploaded)
Defective behavor in "Guess settings from buffer"
Should I provide a test case on this bug or create a new bug altogether?
It is a little different: A 2/spaced .js file detected as 4/tab
maybe create a new one, we can always mark it as a duplicate later, and your test case won’t get lost
The indentation detector want at least 10 indented lines to make an educated guess.
Your sample file has only 2 indented lines, so doesn’t meet the requirement.
You can run this command in the console to lower the threshold to 2 and make it works with your file:
view.run_command('detect_indentation', {'threshold': 2})
In hindsight, maybe I should’ve linked my issue way earlier - since I don’t think I was ever working on a file of this size originally.
However, for the sake of minimizing (and/or obsfucating) it ended up like this.
[ST4] Why ST4 doesn't respect the tab size=4 setting?