[TxMt] Re: Defaulting to soft tabs + undoing hard tabs
layotl at gmail.com
Wed Oct 20 18:43:16 UTC 2010
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.
On Wed, Oct 20, 2010 at 8:56 AM, Joe Lapp <arachnojoe at 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.
> textmate mailing list
> textmate at lists.macromates.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the textmate