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
Written by classname
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#