Search code examples
tabstextmate

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


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?


Solution

  • 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.