How do you default to Soft Tabs while programming in Textmate?

Kelvin picture Kelvin · Mar 26, 2009 · Viewed 16.5k times · Source

My "Soft Tabs" setting in TextMate is not sticky. After I restart TextMate, I often have to set the option again for the same file. How can I make this setting the sticky default across all files?

Answer

DarthNerdus picture DarthNerdus · Oct 9, 2009

For Textmate 1

After doing some research, I found that you can set TextMate 1 to default to using Soft tabs.

In the "Shell Variables" area of the Advanced preferences pane, add a new entry with the name TM_SOFT_TABS and a value of YES.

From that point on, TextMate should default to Soft tabs, though for at least one or two languages, I had to specify the number of tabs. After I did that, it seemed to stick for everything I did.