Search code examples
rubyconsolecommandrubymineword-wrap

RubyMine's built-in console runs out of space. How to wrap lines?


When I'm using the built-in console in RubyMine, if the commands I type exceed a certain amount of characters the console will cease to display new characters.

I've looked through all the RubyMine settings for a 'wrap' option for the console but I don't seem to be able to find one.

Please help if you know where such an option is located. It's rather annoying not to be able to see half of a long command.


Solution

  • You can tell the IRB console to use soft wraps or not. When the console window is the active window, either

    • click the button with a picture of three sliders

    or

    • go to Help -> Find Action.
    • enter "use soft wraps"
    • hit return

    to toggle soft wrapping between off and on.

    (In general, you can sometimes find RubyMine functionality that you wish existed by searching in the search box in the upper left of the Preferences dialog. I found "Use Soft Wraps" (which I didn't know existed until just now) by searching for "wrap".)

    Unfortunately, in my hands, this setting doesn't affect the Terminal window, which always wraps for me -- maybe that's what you're talking about.