Sublime Forum

[ST4] Why ST4 doesn't respect the tab size=4 setting?

#1

Along from ST3, my tab size is set to 4 always. After upgraded to ST4, the setting is still there, however, the files opened became tab size:2. If I open a new file in my project, it shows 2 in status bar. I have to manually change it to 4. Ever more, it changed back to 2 somehow always.

When I set it from the status bar to tab width: 4, then click Guess settings from buffer, it became 2 again. Anyone knows how to fix? Thanks.

0 Likes

#2

did you install any indentation-related plugin such as autosetindentation, editorconfig etc…

0 Likes

#3

No I didn’t. I found this topic Defective behavor in "Guess settings from buffer" and then found the setting "detect_indentation": false,. After this indent works as expected.

I think its bcos in my files, the beginning are some comments, in them there are 2 spaces always. The auto detection in ST4 seems educated wrongly by those lines :slight_smile:

1 Like