Execute selected code in console

IRB console in RubyMine is a quick way to execute Ruby code.

Here is a quick hint on how you can quickly execute some code from the editor.

  1. Tools | Start the IRB console
  2. Select a code
  3. Tools | Load selected text/file in IRB console (⌥⇧L/Alt+Shift+L)

As you may have guessed from the menu item title, you can execute the whole file, without selecting any code. Try it!

Have you tried RubyMine 1.5 EAP already? Ruby 1.9, improved Cucumber support — already there, with Shoulda and new refactorings coming shortly! Try today!

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

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="">