Posts Tagged ‘productivity’

RubyMine TipCast: Find Files like a Pro

Tuesday, December 1st, 2009

RubyMine provides numerous options to navigate from file to file:

  • ‘Go to declaration’ (⌘B/Ctrl+B)
  • Navigate to Rails… (⌥ ⇧ N/Alt+Shift+N)
  • ⌘ Mouse Click/Ctrl+Mouse Click or mouse middle button click
  • and many others.

But sometimes you just need to open a particular file that you know. Ob course, you can open if from the Project view but there is a much faster way — the ‘Go to file’ ⌘⇧N/Ctrl+Shift+N.

The ‘Go to file’ is plain simple, but has some advanced features we’d like to show today. To make the presentation more interactive, here is a short video (view in a new window):



Check other RubyMine demos

We’d like to know what you want to see in the Tipcast series. Please let us know in the comments.

Execute selected code in console

Monday, August 10th, 2009

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!

5 keyboard shortcuts to get familiar with

Monday, August 3rd, 2009

You probably know RubyMine bases on IntelliJ platform and gets lots of cool features from the platform. Going even further, I will base this post on a post in IntelliJ IDEA blog. The author of the original posting has permitted it.

We truly believe in the power of keyboard shortcuts, but some of them may be overlooked. Here are 5 combinations we advice you to try and get familiar with.

Ctrl+W & Ctrl+Shift+W: When it comes to precisely selecting a value, expression, statement or any other block of code, these shortcuts are a real killer. Just try it to see how quicker it works than the traditional Ctrl+Shift+NavKeys combo.

⌥F11/Ctrl+Shift+F12: This hides everything but the editor and so leaves you tête à tête with the code.

⌃⌥⇧Up/Down/Ctrl+Alt+Shift+Up/Down: If you are using Version Control integration, you gonna love this one — it quickly navigates you between changes in a file.

⌥F1/Alt+F1: This simple hotkey summons ‘Select target’ list allowing you instantly select the currently edited file in one of IDE views such as Project view, Changes view, etc. Comes quite useful especially on big projects and keeps you hands on the keyboard.


Ctrl+Tab, Delete: Pressing Delete while the Switcher is open (Ctrl+Tab) allows closing editor tabs and hiding tool windows
NOTE: This one only works in RubyMine 1.5 EAP since build 1287.

Did you know? Finding usages…

Wednesday, March 25th, 2009

No matter how long you know RubyMine, you can still find something new in it. I was doing Productivity Tips update just yesterday and found one thing I did not know

We quite often need to find where something is used in the file or in the project. And you most likely already know the Find Usages thing. But do you know all of its variations? Do you really?

Well, I did not.

There’s this great Show Usages that is very similar but shows the found usages in the popup where you can select a place to go to. The action is under Search menu and works with ⌘⌥F7/Ctrl+Alt+F7

Make sure you get to know all of the usages finding ways. The ‘Highlight Usages in File‘ is one of my favorite.

Posted by Eugene Toporov, Marketing Manager

What’s mining: run Rake tasks quickly

Wednesday, March 11th, 2009

This one is really hot, not even available to our QA yet. We are adding the feature to quickly execute Rake tasks.

Once activated, a field appears allowing to enter the name of a task to execute. The search mechanism is smart enough to find just what is needed by short names and also allows using the * wildcard.

We are now finding a best place for the action in the menu and choosing the right shortcuts.

Additionally, when a needed task is selected you can execute it with simple Enter key press or, by using the Alt+Enter, invoke Rake task options dialog first, if additional arguments needed.

The feature should be available in the next EAP build to play with. Stay tuned!

Update: the action goes to Run menu: Tools | Run Rake Task…. It also will be available by Alt+Shift+R / ⌥R shortcuts.