Hi,
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 ?
Thx, C.
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
Hi,
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.
I can't tell if the question was to figure out how to set the tab to use spaces/\t or to convert the tabs in the file to spaces and vice versa.
If it's the later, you'll find that in Text > Convert > Spaces to Tabs / Tabs to Spaces
But while we're discussing this, you should use 4 spaces in python code, not tabs. ;)
... oh no you didn't ... :-)
-steve