[TxMt] Shift-Tab to align a block of code

Jim Leask leask at rogers.com
Thu Feb 2 04:58:39 UTC 2006


Thanks for the info (to several who responded) This worked fine...

However, I must say, I think this is one thing that the Mac didn't  
get right. (they got enough other stuff right that I never use my PC  
anymore though).  Using Tab and Shift-Tab to do a shift operation is  
much more sensible when a block of text is selected. I really don't  
find it useful at all to have a block of text deleted, then replaced  
by a tab, which is what happens now.

This is especially true when I select a vertical bar block of text (a  
block selection that runs vertically without including any characters  
at all). If you do this, and hit Tab, it (in my opinion) does the  
right thing of inserting a tab in front of all of the characters in  
the block, thereby shifting all characters to the right of this  
vertical block to the right. However, the Shift-Tab doesn't shift  
them back again....

Is there a way to remap these keys to do this?

Jim




On 1-Feb-2006, at 6:16 AM, Sune Foldager wrote:

> On 01/02/2006, at 5:12, Jim Leask wrote:
>
>> Shift-tab does not shift everything left, eventually squeezing out  
>> the whitespace and leaving a nicely aligned column. Can I do this  
>> somehow, and if not could it be added? (I really miss this feature)
>
> It's on opt-tab (shift right), and shift-opt-tab (shift left). As  
> other mention, it's also on cmd-] and [ respectively.
>
> -- Sune.
>
>
> ______________________________________________________________________
> 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