[TxMt] Spaces instead of tabs -> per filetype basis?
Michael Twomey
micktwomey at gmail.com
Mon Aug 15 11:07:21 UTC 2005
Hi,
I find this essential too, I achieve it using simple preferences items
in the bundle editor.
E.g. for python I create a "tabs" preferences item and add the following:
{
softTabs = "1";
tabSize = "4";
}
I also set the scope to "source.python" to ensure it only gets used
for python. I have custom settings like this for many of my filetypes
(e.g. 2 spaces for xml).
Hope this covers what you want.
cheers,
mick
On 8/15/05, Shanti Braford <shantibraford at gmail.com> wrote:
> Hey all,
>
> I was wondering if there was a way to setup different file types to
> use the "Tab -> space" conversion feature, and others... not.
>
> I.e. for Ruby on Rails code (.rb and possibly .rhtml), I'd like to
> have Tabs automatically get converted to spaces.
>
> But for .txt files and other file types where I would like to keep
> tabs... is there a way to do this somehow?
>
> Just finally registered my copy of TextMate... and, knowing how
> incredibly versatile it is, I'm just figuring there's got to be a way
> to pull this off somehow (w/o making it a new feature, which, imho
> would be nice too!) =)
>
> Shanti
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>
More information about the textmate
mailing list