[TxMt] Re: align code

Tim Bates timothy.c.bates at gmail.com
Thu Oct 3 21:07:14 UTC 2013


grab the "Align" bundle, then cntrl-cmd-9

On 3 Oct 2013, at 20:54, Ross Ahmed <rossahmed at googlemail.com> wrote:

> Graham
> 
> Thanks for response. If I select the code I posted below and press ⌥⌘] the code barely moves, it remains virtually as posted below.
> 
> Ross
> 
> From: Graham Heath <graham.p.heath at gmail.com>
> Reply-To: TextMate users <textmate at lists.macromates.com>
> Date: Thursday, 3 October 2013 20:43
> To: TextMate users <textmate at lists.macromates.com>
> Subject: [TxMt] Re: align code
> 
> "Align Assignments" is option command right bracket: ⌥⌘]
> 
> Quick tip, you can search all bundles with command option T:  ⌥⌘T
> 
> Graham Heath
> graham.p.heath at gmail.com
> 
> 
> 
> 
> On Oct 3, 2013, at 11:19 AM, Ross Ahmed <rossahmed at googlemail.com> wrote:
> 
>> I am using TextMate to write some R code. At the moment, I have R code that looks like this:
>> 
>> foofoofoofoofoofoo <- NULL
>> foofoofoofoo <- NULL
>> foofoofoofoofoo <- NULL 
>> foofoofoo <- NULL
>> foofoofoofoofoofoofoofoofoofoo <- NULL
>> 
>> 
>> 
>> Is there a way to automate aligning all <- within a block of code, like this:
>> 
>> foofoofoofoofoofoo 		  	     <- NULL
>> foofoofoofoo 	 		 	     <- NULL
>> Foofoofoofoofoo         		 	     <- NULL 
>> foofoofoo                   		  	     <- NULL
>> foofoofoofoofoofoofoofoofoofoo <- NULL
>> 
>> 
>> 
>> Many thanks
>> Ross
>> 
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
> 
> _______________________________________________ textmate mailing list textmate at lists.macromates.com http://lists.macromates.com/listinfo/textmate
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20131003/c54cbd60/attachment-0001.html>


More information about the textmate mailing list