Steve, you're a gentleman and a scholar! Thank you.<div><br></div><div>Ken</div><div><br><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 7:00 PM, Steve King <span dir="ltr"><<a href="mailto:sking@arbor.net">sking@arbor.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 2010-06-17 16:12, Daedal wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I was wondering if there was maybe a hack or plugin that will allow me to do<br>
this? I'm required to convert all tabs to spaces before committing any code,<br>
and having to do it manually (text->convert->tabs to spaces) on every file<br>
can get pretty frustrating.<br>
<br>
</blockquote>
<br></div>
The first thing I'd recommend is to turn on soft tabs (bottom of the window, in the tab size selector). This will insert spaces instead of tabs, so there won't be anything to convert when it's time to save.<br>
<br>
If you still want to automatically run the tabs-to-spaces conversion, record it as a macro. Start recording, do tabs-to-spaces, save the file, and stop recording. Then save the macro, go into the bundle editor, and set its activation to "Key Equivalent" and set the key to ⌘-S. Now hitting ⌘-S will convert tabs before saving the file. (It's not a perfect solution though; the File->Save menu item will still have its regular behavior.)<br>
<font color="#888888">
<br>
-- <br>
Steve King<br>
Sr. Software Engineer<br>
Arbor Networks<br>
+1 734 821 1461<br>
<a href="http://www.arbornetworks.com" target="_blank">www.arbornetworks.com</a> <<a href="http://www.arbornetworks.com/" target="_blank">http://www.arbornetworks.com/</a>></font><div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div>