Tools | Run IRB Console
Tools | Run Rails Console
IRB and/or Rails consoles appear in the separate tabs of the Run tool window every time you choose
the corresponding command on the Tools menu.
Rails console is only available for the Rails applications; IRB is available for both pure Ruby projects, and Rails applications.
Color and font scheme of a console is configurable on the Console Colors and Console Fonts pages of the Colors and Fonts editor settings.
An interactive console is divided into two panes: the lower pane serves for user input, the upper pane displays results and messages.
|Item||Tooltip and shortcut||Description|
|Up/down the Stack Trace
|Click this button to navigate up or down in the stack trace and have the cursor jump to the corresponding location in the source code.|
|Use Soft Wraps||Click this button to toggle the soft wrap mode of the output.|
|Scroll to the end||Click this button to navigate to the bottom of the stack trace and have the cursor jump to the corresponding location in the source code.|
|Click this button to send the console text to the default printer.|
|Clear All||Click this button to remove all text from the console. This function is also available on the context menu of the console.|
|Show Ruby prompt||If this button is pressed, you can enter commands in the console and view output.
Note that in the debug console, code completion is available:
It's also possible to scroll through the history of commands with the up and down arrow keys.
This button is not available while debugging tests. Refer to the section Debug Tool Window. Interactive Console for details.
|Press this button to show the Debug Console History dialog box, where one can view
the console entries and navigate through them, using the arrow keys.
Click OK to close the dialog box.
Context menu commands
|Copy Reference||Ctrl+Shift+Alt+C||Choose this command to put reference to the symbol at caret to the Clipboard.|
|Compare with Clipboard||Show selection in the console and contents of the Clipboard in the Differences viewer.|
|Create Gist||Choose this command to create a Git Gist.|
|Clear All||Choose this item on the context menu to delete all messages from the upper part of the console.|
|Paste||Ctrl+V||Insert the last entry of the Clipboard next to the caret position in the lower part of the console.|
|Paste from History||Ctrl+Shift+V||Insert selected entry of the Clipboard next to the caret position in the lower part of the console.|
|Paste Simple||Ctrl+Shift+V||Insert selected entry of the Clipboard as plain text, next to the caret position in the lower part of the console.|