IntelliJ IDEA 2017.3 Help

Ruby Tips and Tricks

This feature is only supported in the Ultimate edition.

The following is only valid when Ruby Plugin is installed and enabled!

On this page:

Fill paragraph

Fill Paragraph action is supported for Ruby comments. This action creates soft wraps in comments. To make use of this action, follow these steps:

  1. Place the caret somewhere inside a comment in Ruby class.
  2. Do one of the following:
    • On the main menu, choose Edit | Fill Paragraph
    • Press Ctrl+Shift+A, in the pop-up frame, type Fill Paragraph, and then press Enter,

Highlight exit points

If you place the caret at an exit point of a function, the other exit points are also highlighted:

ruby highlight exit points

Running the Bundler

On the UNIX-like computers, IntelliJ IDEA suggests to run the Bundler with the sudo privileges, if SDK so requires. For example, Chef DK by default, requires installing gems under sudo:

rm chef sudo

Also, when running commands, IntelliJ IDEA automatically understands from the command output that running with sudo is required, and suggests to re-run this command with sudo.

Last modified: 6 March 2018