What’s mining: surround selected text

One small but handy thing that you’ve been asking for is the ability to quickly surround the selected text with quotes, single quotes, parentheses, etc. with a single key.

We just did it for quotes! And will also add parentheses before the next EAP build, later this week. More will come later.

Apart from that it should be mentioned that RubyMine has nice “Surround With” feature that allows surrounding pieces of code with other, more complex constructs. Try it: Ctrl+Alt+T / ⌥⌘T

We are listening carefully. So, if you want something, let us know. Here is how you can do it.

This entry was posted in WhatsMining and tagged , , . Bookmark the permalink.

3 Responses to What’s mining: surround selected text

  1. Kenton says:

    Web and Java developers want this too!

    For Java I would like surround with quotes, for the web I’d like apostrophes and quotes (would be invaluable in Javascript and markup based languages like Coldfusion/Flex).

    I tried the latest Maia EAP and did not see this feature.

  2. The surround with feature is great. I’d like to add my own cases for that. How can I do that?

    The concrete example is that I’m often finding myself refactoring rspecs and would like to surround code blocks with describe do … end



  3. Jason says:

    Just a bit of clarification for other RubyMine newbies like myself: In order to surround selected text with quotes you’ll first select the text, then press Ctrl+Alt+T / ⌥⌘T. In the window that appears, choose the ellipsis option (number 1), and then press the double or single quotes key.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">