[TxMt] Re: toggle 'do ... end' / '{ ... }'

Caius Durling caius at caius.name
Wed Dec 9 19:43:13 UTC 2009


On 9 Dec 2009, at 19:11, Martin wrote:

> what do I have to do if I want to convert from
> array.each { |e| puts e }
> to
> array.each do |e|
>  puts e
> end
> 
> 
> I found the command toggle 'do ... end' / '{ ... }' but I don't know exactly how to use it. Where has the cursor to be positioned? Do I have to select any text?
> The shortcut ^{ won't work because I have a German keyboard. But even if I choose the command from the menue nothing happens.


I've found this stopped working with the latest version of TextMate. Presuming changing the path screwed the script somehow but I've not had a chance to investigate it yet.

C
---
Caius Durling
caius at caius.name
+44 (0) 7960 268 100
http://caius.name/




More information about the textmate mailing list