![](https://cdn.userecho.com/characters/82.png?1)
+2
Fixed
My specified tab_size gets overridden incorrectly
I'm editing Python code, and my Python settings have "tab_size": 4. Sublime Text doesn't always listen to this, and I think it has to do with the size of the first indentation in the file.
For example, if I have an import list wrapped onto multiple lines, with 20 spaces at the start of the next line to line up with "from module import (", it seems that Sublime Text takes this as an indication that I didn't really want 4-space indents, and it uses 8-space indents instead. Even though the rest of the file uses 4-space indents and now I can't get to half of the tab stops.
At least it doesn't use 20-space indents, but inappropriate 8-space indents are still frustrating.
For example, if I have an import list wrapped onto multiple lines, with 20 spaces at the start of the next line to line up with "from module import (", it seems that Sublime Text takes this as an indication that I didn't really want 4-space indents, and it uses 8-space indents instead. Even though the rest of the file uses 4-space indents and now I can't get to half of the tab stops.
At least it doesn't use 20-space indents, but inappropriate 8-space indents are still frustrating.
Answer
![](https://cdn.userecho.com/characters/74.png?1)
+1
Answer
Fixed
Jon Skinner 14 years ago
This will be the indentation detection guessing wrong. You can disable indentation detection: http://www.sublimetext.com/docs/2/indentation.html
![](https://cdn.userecho.com/characters/74.png?1)
+1
Answer
Fixed
This will be the indentation detection guessing wrong. You can disable indentation detection: http://www.sublimetext.com/docs/2/indentation.html
Customer support service by UserEcho