As a developer on the Windows platform, it’s very difficult to stop reaching for the mouse but I’ve been trying to wean myself from the mouse as much as possible. Here are a few of my favorite RubyMine shortcuts that have helped.
- Ctrl + W
Selects the nearest word. Repeatedly pressing them will select increasingly larger blocks of words.
- Ctrl + /
Toggle commenting on the selected line or highlighted block. - Ctrl + Tab
Navigates through the files that are open. - Shift + Delete
Deletes the current row and places it in your Clipboard to paste later. - Ctrl + Alt + M
Extracts the highlighted block of code into a new method.
Ctrl-x (or Cmd-x) will also cut the line with the cursor on it and put it in the clipboard. Just slightly easier keystroke to me.
Also similar and very handy is Ctrl-d (or Cmd-d), which will duplicate the current line (or selected lines), but not effect your clipboard (which you’re often ready to paste from already).
I use Ctrl-d a lot too. I plan to include that one in a future post.
[…] A Few of My favorite RubyMine Shortcuts to Speed Up Development […]