Read more

List of Helpful RubyMine Shortcuts

Dominik Schöler
August 05, 2015Software engineer at makandra GmbH

Navigation

CTRL + SHIFT + ALT + N
: Search for any symbol in your application, like CSS classes, Ruby classes, methods, helpers etc.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

CTRL + SHIFT + N
: Search for filename in your application (also dependencies)

CTRL + E
: Open a list of recently opened files

ALT + POS1
: Open a the navigation bar as a context menu. Allows you to quickly navigate between files.

CTRL + G
: Go to line

Actions

CTRL + SHIFT + A
: Find and execute a menu action by its name

ALT + ENTER with the cursor on a highlighted section (e.g. underline)
: Opens a context menu offering actions for the highlighted section.

ALT + INS
: Create a new file/directory/... . List does filter-as-you-type, so by typing f or d you can select either file or directory and press Enter. Additional boost: When typing a file name, you may write intermediate directories as part of the file name. RubyMine will create any missing directory.

ALT + J
: Select the word under the cursor, then select each next occurrence of this word in the code (multiple selection). Power feature!

Press CTRL twice, and then without releasing it, press down arrow keys
: The new carets are added to the columns below. Power feature!

CTRL + SHIFT + ALT + C
: Copy the current file path with line number to the clipboard. This is especially helpful to run a single feature/spec: Just paste the reference into your terminal (you need to "unmark" the test directories "as test sources root" to get a path relative to the project root).

CTRL + D with two files selected in the project pane (click with CTRL)
: Diff the selected files

CTRL + SHIFT + Backspace
: Move caret to position of last edit

CTRL + ALT + Left arrow
: Move to last position (see this card for Ubuntu 20.04 with Gnome)

CTRL + ALT + L
: Auto indent marked code (does not always work)

SHIFT + Click Editor tab
: Close the tab

Info

CTRL + SHIFT + i
: Open the method definition in a popover.

Menu

  • When using File > Reopen Project > ..., holding SHIFT when selecting a project will open it in a new window without asking.

ERB Edition

CTRL + SHIFT + .
: Insert Ruby expression tag (<%= %>)

Also see

Posted by Dominik Schöler to makandra dev (2015-08-05 13:50)