Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 tab_size setting not correctly activated

Tags:

sublimetext2

I have the following in my user/Preferences.sublime-settings

{
    "tab_size": 2,
}

And most of the time it works. But once in a while I open a ruby file, and it jumped back to 4 spaces. I'm wondering if there is some bug or slight difference in opening a file that could change this?

Having trouble tracking this down. Thanks for the help.

like image 740
Brian Armstrong Avatar asked Aug 30 '12 05:08

Brian Armstrong


1 Answers

You'll want to add:

"detect_indentation": false

This is on by default and ST is trying to be smart detecting the indentation of your current file, overloading the user or syntax specific default.

like image 192
ferik Avatar answered Oct 23 '22 13:10

ferik