RubyMine 2017.3 Help

Part 1. Finding by Name, Jumping to Recent and Searching Everywhere

Navigate to file/class/symbol

This is one of the most powerful RubyMine's navigation and search features that enables you to find actually any file, class or symbol by its name, and jump directly to it. This is how it's done.

Navigate to file

Press Ctrl+Shift+N, and type ca in the pop-up window that opens:

/help/img/idea/2017.3/rm_goto_file.png

Navigate to class

Next, let's jump to a specific class. To achieve this goal, press Ctrl+N, and type, for example, ca. The suggestion list shows all classes with the letter ca somewhere inside their names. Note that each class is followed by its fully qualified path:

/help/img/idea/2017.3/rm_goto_class.png

Select Cat in the suggestion list, and press Enter. This time, the file opens with the caret at the class declaration:

/help/img/idea/2017.3/rm_goto_class_1.png

Navigate to symbol

Next, let's jump to a certain member of a class. Press Ctrl+Shift+Alt+N, and type *oo (* is a mask for any amount of any characters.)

/help/img/idea/2017.3/rm_goto_symbol.png

From the suggestion list, select food from Carnivorae and press Enter. The file Carnivorae.py opens at the method declaration:

/help/img/idea/2017.3/rm_goto_symbol_1.png

Recent files

Most of the time, you switch between a handful of files you are actively working on. The other files are less necessary. RubyMine has the features making this workflow very convenient.

Suppose you are editing a function, and at the same time you’re writing a test for this function - it means that you are switching back and forth.

This is where navigating to recent files comes to help: press Ctrl+E. Note that the most recent file is listed first and selected by default - you just need to press Enter.

/help/img/idea/2017.3/rm_recentFiles.png

Speed search is available in the recent files pop-up. Just start typing what you are looking for, and you'll see the result that matches the search string:

/help/img/idea/2017.3/rm_recentFiles_speed_search.png

Note that you can also jump to a tool window (e.g., open a new terminal session).

What if you are interested in the recently edited (not just visited) files? In this case, use the keyboard shortcut Ctrl+Shift+E. Note that speed search and navigation to the tool windows are also available.

Searching everywhere

RubyMine gives you the chance to find anything anywhere, and jump directly to the search result. Thus you can find the same classes, files and symbols, actions and settings. To do that, just double-press Shift, or click the magnifier glass icon /help/img/idea/2017.3/search_everywhere.png in the right-hand corner of the RubyMine window, and here you are:

/help/img/idea/2017.3/rm_search_everywhere1.png

Jumping to a line

And finally, let's open a file for editing (F4). Let it be mammalia.rb. Then, press Ctrl+G:

/help/img/idea/2017.3/rm_goto_line.png

You'll find yourself at the specified line, and the specified column:

/help/img/idea/2017.3/rm_goto_line_result.png

Summary

This brief tutorial is over. You've mastered the following features:

What's next?

Let's proceed with Part 2 and see how to jump to a declaration and implementation.

See Also

Last modified: 15 September 2017