[TxMt] TM Ruby and Tabs
jeanpierre at gmail.com
jeanpierre at gmail.com
Mon Jan 15 03:43:31 UTC 2007
On 1/14/07, s.ross <cwdinfo at gmail.com> wrote:
>
> For some reason, over time, about half of my Ruby files have 4-space
> indents and the other half want to indent by 2 spaces. I've been
> living with it, but not my source is looking a bit like it had too
> much to drink last night. Questions:
>
> 1) How do I tell TM how many spaces to indent?
at the base of the document to the left of the symbol menu
2) Is there some cool way to invoke the auto indenter across a whole
> file (I know it will get some of the indents a bit wrong, but it's
> easier than going line by line)?
at worst, i think you could probably set your spaces to tab value, select
all the text then mash option-command-[ to re-indent.
there might be alternate and perhaps more optimal ways to do this but that
is what i've come across so far.
cheers,
jean-pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070114/53444fd2/attachment.html>
More information about the textmate
mailing list