Convert Ruby blocks between single line and multi line formats. Or between curly brackets and do-end statements.
Place the cursor in between the brackets and hit the shortcut.
macOS | Linux/Win | |
---|---|---|
Normal | ctrl-} |
alt-] |
Without joining | ctrl-alt-} |
alt-} |
Place the cursor in between the do-end and hit the shortcut.
macOS | Linux/Win | |
---|---|---|
Normal | ctrl-{ |
alt-[ |
Without collapse | ctrl-alt-{ |
alt-{ |
'ruby-block-converter:to-curly-brackets''ruby-block-converter:to-curly-brackets-without-collapse''ruby-block-converter:to-do-end''ruby-block-converter:to-do-end-without-join'
Inspired by the Sublime Text Ruby Block Converter by irohiroki.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.