Toggle between {}
and do
end
blocks. Place your cursor on the block arugument (i.e. the word after the keyword do
between the two pipes) and press Shift + Control + {
For example, converts:
@post.each do |post|
puts post.name
end
to:
@post.each { |post| puts post.name }