Reputation: 85
I'm using Rubymine and wondering, how can I convert a block from curly braced notation to begin..end and vice versa?
for example
loop do
end
to
loop {}
Upvotes: 3
Views: 412
Reputation: 37517
To toggle between do
..end
blocks and {``}
blocks, place your cursor on the do
(or open bracket) and press Alt + Enter. You see the option to toggle.
Upvotes: 8