3 ms·
One thing I think is a bit annoying is that SublimeText doesn't seem to be able to properly detect the 4-space tab settings in Python if you have some visually
by x1798DE 11y ago
One thing I think is a bit annoying is that SublimeText doesn't seem to be able to properly detect the 4-space tab settings in Python if you have some visually aligned elements that are indented to a multiple of 2 - it always incorrectly assumes 2 for those files.
Given that Python itself relies on consistent indentation, once you know it's Python, you should be able to detect the file settings by finding an indented construct and checking the indentation of the next block. That or ignore lines that come between brackets, parens, quotes, etc, when doing the calculation.
I assume there is a plugin for this, but a cursory search hasn't turned it up.