Sublime Forum

[SOLVED] File with wrong tab-size

#1

Hi guys, i have a small but very frustrating issue…

I have my tab size set to “2” in my user preferences and my default preferences, but there is a single file that keeps opening with a tab-size of “4”… just that one fu****g file :imp: !

Im using the project functionality, but i’ve checked the project files (sublime-project and sublime-workspace) and there is nothing there, i’ve changed every line in those file whit a tab-size and set it to “2”…

any tips?

0 Likes

#2

This will be indentation detection in action, you can disable it via these instructions: sublimetext.com/docs/2/indentation.html

0 Likes

#3

Perfect! it works :smiley:

Thanks!

0 Likes

#4

Try disable indentation detection but not work. I found one way to manually correct the tab size: Go to bottom right of sublime text, in the left of coding language and you can see sublime detect the tab size, in my case is “Space:4”. Click to it and change to your desire size (see image below)

0 Likes