Hi There,
I’ve found lots of similar questions but not an answer that works - basically, no matter what I set in preferences or manually force document by document, ST3 refuses to set my tab width to 4 spaces.
Desired result:
I would like all documents within a project to be converted to spaces and use an indentation level of 4
Things I’ve tried:
- Adding the following (and changing true/false) to my user preferences and php-specific settings:
"detect_indentation": false,
"smart_indent": true,
"tab_size": 4,
"translate_tabs_to_spaces": false,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": false,
"use_tab_stops": false,
-
Uninstalling ST3 and preferences files/packages and reinstalling packages one-by-one - but converting to spaces wasn’t working with a fresh install and default packages
-
Converted spaces to tabs (the opposite of what I want) to see what ST3 thinks is indentation
-
Have noticed that some spaces get converted to tabs but many do not - you can see an image of this after converting to tabs here: http://stackoverflow.com/questions/27557030/sublimetext-3-nothing-works-to-force-indentation-to-4-spaces
-
Does this mean that ST3 thinks that some of the double spaces are not indentation but regular spaces?
-
If so, is there a way to force ST3 to convert all indentation in a project to 4 spaces
Any help or pointers in the right direction would be much appreciated as it’s starting to drive me crazy.
Regards,
Ben