dojo
RubyMine Cheatsheet
ShortcutFoo uses a Spaced Repetition System that adapts to your training.
scf keyboard

Editing

^⌥I
Auto-indent line(s)
^SPACE
Basic code completion
^⇧?
Comment/uncomment with block comment
^/
Comment/uncomment with line comment
^C
Copy current line or selected block to buffer
^X
Cut current line or selected block to buffer
^⇧W
Decrease current selection to previous state
^Y
Delete line at caret
^BACKSPACE
Delete to word start
^D
Duplicate current line or selected block
scf keyboard

Editing II

TAB
Indent selected lines
^O
Override methods
^V
Paste from buffer
^⇧V
Paste from recent buffers...
^Q
Quick documentation lookup
^⌥L
Reformat code
^W
Select successively increasing code blocks
^⇧}
Select till code block end
^⇧{
Select till code block start
⌥↵
Show intention actions/quick-fixes
⇧↵
Start new line
scf keyboard

Editing III

^⌥T
Surround with (begin...end, if...then...end, etc.)
^⌥U
Toggle Camel/Snake Case
^⇧U
Toggle case for word at caret or selected block
⇧TAB
Unindent selected lines
⌥⇧F10
Open run configurations dropdown
⌥⇧F9
Open debug configurations dropdown
⇧F10
Run
⇧F9
Debug
^⇧F10
Run context configuration from editor
^⌥R
Run Rake task
scf keyboard

Navigation

^N
Go to class
⌥LEFT
Go to previous editor tab
^⇧N
Go to file
^⌥⇧N
Go to symbol
⌥RIGHT
Go to next editor tab
^G
Go to line
^⌥LEFT
Navigate back
^E
Recent files popup
^⌥RIGHT
Navigate forward
scf keyboard

Navigation II

^⇧BACKSPACE
Navigate to last edit location
⌥F1
Select current file or symbol in any view
^⇧L
Open quick definition lookup
^]
Move to code block end
^[
Go to code block start
^F12
File structure popup
scf keyboard

Navigation III

^H
Type hierarchy
F2
Next highlighted error
⇧F2
Previous highlighted error
F4
View source
⌥HOME
Show navigation bar
^F11
Toggle book mark with mnemonic
^3
Go to bookmark numbered 3
^9
Go to book mark numbered 9
scf keyboard

Run

⌥⇧F10
Open run configurations dropdown
⌥⇧F9
Open debug configurations dropdown
⇧F10
Run
⇧F9
Debug
^⇧F10
Run context configuration from editor
^⌥R
Run Rake task
scf keyboard

Rails

⌥⇧N
Navigate to Rails model/view/controller etc.
⌥F2
Preview Rails View in browser
^⇧↵
Complete statement (only in RHTML)
^⇧>
Insert <%= %> (only in RHTML)
^⌥D
Model Dependency Diagram
^R
Reload applications sources -only in Rails Console
^⇧Y
'Ruby/Rails' quick list
^⌥G
Run Rails generator
scf keyboard

Debugging

F8
Step over
F7
Step into
⇧F8
Step out
⌥F9
Run to cursor
⌥F8
Evaluate expression
F9
Resume program
scf keyboard

Refactoring

F5
Copy refactor (only for files)
^⌥M
Extract Method
^⌥F
Introduce field
⇧F6
Rename
F6
Move refactor (only for files)
^⌥C
Introduce constant
^⌥N
Inline
^⌥⇧T
'Refactor this...' quick list
^⌥V
Introduce variable
scf keyboard

Search / Replace

^F
Find
F3
Find next
⇧F3
Find previous
^R
Replace
^⇧F
Find in path
^⇧R
Replace in path
⌥F7
Find usages
^⌥F7
Show usages
scf keyboard

Misc

^D
View diff
⌥`
VCS operations popup
^J
Insert live template
achievement-star