TM should -- assuming I'm remembering this correctly! -- remember the soft tab setting on a per filetype basis. If you set "soft tabs, 4 spaces per tab" when an HTML file is open and save that file that way, the next time you open an HTML file, it'll be opened in soft tabs, 4 spaces per tab.

There's a menu command to convert hard tabs to soft tabs, which you probably already know about; I don't know of a way to automatically link that to the 'save' action, though.

- Watts

On Wed, Oct 20, 2010 at 8:56 AM, Joe Lapp <arachnojoe@gmail.com> wrote:
I've just been troubleshooting why so many of my files have hard tabs
in them.  Now I see that whenever I create a new file in TextMate, it
defaults to hard tabs.  Two questions:

(1) How do I have TextMate automatically assume soft tabs 2 when I
create a new file?

(2) Is there a way to have TextMate convert hard tabs to soft tabs on
save, so I can easily fix this mess?

I think once upon a time I knew that I had to manually set soft tabs
for each new file, but at some point I forgot.

~joe

_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate