Wrapping selections in quotes, braces etc.

In TextMate and Netbeans I can write the following type of thing

foo => bar

I can select 'foo' and type a quote, "  and this will result in "foo" i.e. wraps the selection in quotes the same works for (, {, [ ' etc.

Can I do this in Rubymine? I've looked through the preferences and can't find anything that would do it?

Thanks

John.

2 comments
Comment actions Permalink

Hello John,

In TextMate and Netbeans I can write the following type of thing


foo => bar


I can select 'foo' and type a quote, "  and this will result in "foo" i.e. wraps the selection in quotes the same works for (, {, [ ' etc.


Can I do this in Rubymine? I've looked through the preferences and can't find anything that would do it?

In RubyMine you can type

foo =>

then type quote, brace etc, and it will be automatically completed with corresponding brace or quote. You`ll get

foo => "<caret is here>"

and start type bar immediately.

Thanks,
Oleg

0
Comment actions Permalink

I know that, but sometimes when changing existing text you want to wrap something in quotes (or braces etc.) that wasn't orignally quoted, I found it quite a useful feature in Netbeans.

John

0

Please sign in to leave a comment.