Sublime Forum

Incorrect tab size


I have next settings:
“font_size”: 9,
“tab_completion”: false,
“word_wrap”: false,
“tab_size”: 4,
“translate_tabs_to_spaces”: true,
“detect_indentation”: false,
“auto_indent”: false
But sublime anyway insert 2 spaces when i press tab. What is wrong with him?



What’s the tab size indicated by the View/Indentation menu? Before you turned off detect_indentation the indentation was determined on a per-file basis so you might have to re-open the file for your tab_size to take effect. Its also possible you have a syntax specific setting overriding your global ones, you can check that in Preferences/Settings - Syntax Specific.