3oaktq
Last Updated: April 08, 2017
·
16
· classname

Sublime Automatically Creates 2-space Tabs When You Want 4-Space Tabs

For whatever reason, my tab-width:4 setting sometimes gets over-ridden in a file, then I'm stuck with that tab width throughout. (I'm looking at you tab-width:2!)

I finally figured out how to fix this.

put

"smart_indent": false,

in user preferences

Which will almost fix things..

You'll notice that some code is tabbed twice in a row ...

just select all, shift+ctrl+p, choose reindent from menu

Voila.
Code beautifully tabbed with tab-width:4 as god intended

Say Thanks
Respond
Filed Under

Awesome Job

D591c606 4ca0 11e7 9f4d aa94ae9f338f
Staff Frontend Engineer
·
Remote! or San Francisco, CA
·
Full Time