Rubymine Topkeys

λ  (  §µßƍŁ¥þĦ ԠƎ  )

The Top Hotkeys to Learn

I’ll be updating this article from time to time with tips on how to use RubyMine’s hotkeys.

Contenders for Topkeys:

  • ⌘⌃↑ - Navigate to Rails model/view/controller etc.
  • ⌥F1 - Does everything with a file. Every thing.
  • ⌘⇧T - Navigate to test, using Ruby conventions.
  • ⌘J - Definitely something to learn later in the game, but Live Templates and Snippets are amazing. However, I have to admit, I don’t haven’t ever gotten to the point where I feel comfortable with them and the amount of configuration, memorization, overhead and forethought is intimidating.

By Far THE #1 Key You Must Learn

⌘⇧A == Find any action inside the IDE

Live Templates/Snippets

⌘J == Insert Live Template

⌘⌥J == Surround with Live Template

Bookmarks

F3 == Toggle Bookmark (printout shows ⇧F6)

⌥F3 == Toggle Bookmark with Mnemonic

⌘F3 == Show Bookmarks

⌃0…⌃9 == Go to Numbered Bookmark

Documentation

⌘P == Parameter info

⌃J == Quick Documentation Lookup

⌃⏎, ⌘N == Generate Code (e.g. Rails Generators)

⌘⌥T == Surround with… (begin…end, if…then…end, etc)

Text Selection

⌥↑ == Select successively increasing code blocks

⌥↓ == Decrease current selection to previous state

Editing

⌘⌥L == Reformat Code

⌃⌥I == Auto-indent lines

⌘⇧V == Paste Recent

⌘⇧U == Toggle Case

⌃⇧U == Toggle Camel/Snake Case

… Move line selection up/down

Running

⌃⌥R == Open run/debug configurations dropdown

⌃R == Run

⌃D == Debug

⌃⇧R / ⌃⇧D == Run/Debug context configuration from editor

⌥R == Run Rake Task

Refactoring

F5 == Copy

F6 == Move

⇧F6 == Rename

⌘⌥V == Extract Variable

⌘⌥C == Extract Constant

⌘⌥F == Extract Field

⌘⌥M == Extract Method

⌘⌥P == Extract Parameter

⌘⌥N == Inline

⌃T == ‘Refactor this…’ quick list

Rails

⌘⌃↑ == Navigate to Rails model/view/controller etc.

⌘⌥G == Run Rails generator

⌘ == Reload application sources in Rails Console

⌘⌥R == Ruby/Rails quick list

⌘⇧T - Navigate to test, using Ruby conventions.

⌘E == Recent files popup

⌘⌥← / ⌘⌥→ == Navigate back/forward

⌘⇧⌫ == Navigate to last edit location

⌃⇧B == Go to type declaration

⌘U == Go to super-method/super-class

⌃↑ / ⌃↓ == Go to previous/next method

⌃E / ⌃/A == Move to code block end/start

⌘F12 == File structure popup

F2 / ⇧F2 == Next/previous highlighted error

⌘↑ == Show navigation bar

F4 / ⌘↓ == Edit source/View source

⌥F1 == Using as input the current file or feature with focus, opens a popup to perform various functions, such as revealing the file in the Project tool window, reveal in Finder, show changes and more. Massively Useful! I didn’t get this at all. Then, I tried it. Whoa!

Search/Replace

⌘F / ⌘R == Find/Replace

⌘⇧F / ⌘⇧R == Find in path/Replace in Path

⌘G / ⌘⇧G == Find next/previous (or use up/down arrow keys)

⌥F7 / ⌘F7 == Find usages/Find usages in file

⌘⇧F7 == Highlight usages in file

⌘⌥F7 == Show usages

General

⌥⇧F == Add to favorites

Mac OS X Modifier Keys

  • U+21E7 ⇧ (shift)
  • U+2303 ⌃ (control)
  • U+2318 ⌘ (command)
  • U+2325 ⌥ (option)

Other OS X Keys

  • U+238B ⎋ (escape)
  • U+21E5 ⇥ (tab)
  • U+21EA ⇪ (caps lock)
  • U+F8FF  (Apple)
  • U+2423 ␣ (space)
  • U+23CE ⏎ (return)
  • U+232B ⌫ (backspace)
  • U+2326 ⌦ (delete)
  • U+21F1 ⇱ (home)
  • U+21F2 ⇲ (end)
  • U+21DE ⇞ (page up)
  • U+21DF ⇟ (page down)
  • U+2191 ↑ (up arrow)
  • U+21E1 ⇡ (dotted up arrow)
  • U+2193 ↓ (down arrow)
  • U+21E3 ⇣ (dotted down arrow)
  • U+2190 ← (left arrow)
  • U+21E0 ⇠ (dotted left arrow)
  • U+2192 → (right arrow)
  • U+21E2 ⇢ (dotted right arrow)
  • U+2327 ⌧ (clear)
  • U+21ED ⇭ (num lock)
  • U+2324 ⌤ (enter)
  • U+23CF ⏏ (eject)
  • U+233D ⌽ (power)