[TxMt] Re: Template, spaces versus tabulation

Jacob Rus jrus at hcs.harvard.edu
Thu Jan 11 10:43:05 UTC 2007


Charles Hebert wrote:
> I'm using textmate for my python work.
> Templates are good but i can't replace spaces increment by tabulation :
> 
> if __name__ == '__main__':
> (_ _ _ _) main() # spaces
> 
> if __name__ == '__main__':
> (tabulation) main()
> 
> I must change it manually each time...
> 
> How to do that with bundle editor ?

You don't use the bundle editor.  Look down at the bottom of the window, 
where it lists the width of a tab stop.  Click on that.  You either want 
to turn on or off soft tabs.

But while we're discussing this, you should use 4 spaces in python code, 
not tabs. ;)

-Jacob




More information about the textmate mailing list