← Back to Shortcut Collections
RubyMine

RubyMine

A full-stack IDE specialized for Ruby and Rails development, equipped with all features for writing beautiful code quickly

Shortcuts for continuously improving Ruby code quality with safe refactoring features like renaming, method extraction, and variable extraction

Shift+F6
Rename
Renames a symbol.
💡 Hint: Shift + F6 = Rename
🎯 Used for bulk renaming of variables, methods, and class names to improve code readability
Ctrl+Alt+M
Extract Method
Extracts the selected code into a method.
💡 Hint: Ctrl + Alt + M = Method
🎯 Used for extracting parts of long methods into separate methods to organize code
Ctrl+Alt+V
Introduce Variable
Extracts the selected code into a variable.
💡 Hint: Ctrl + Alt + V = Variable
🎯 Used for extracting complex expressions into variables to improve code comprehensibility
Ctrl+Alt+C
Extract Constant
Extracts the selected code into a constant.
💡 Hint: Ctrl + Alt + C = Constant
🎯 Used for extracting magic numbers or strings into constants to improve code maintainability
Ctrl+Alt+F
Introduce Field
Extracts the selected code into a field.
💡 Hint: Ctrl + Alt + F = Field
🎯 Used for converting local variables to instance variables to improve object state management
Ctrl+Alt+N
Inline
Inlines a variable or method.
💡 Hint: Ctrl + Alt + N = Inline
🎯 Used for inlining variables or methods used only once to make code more concise
Ctrl+Alt+Shift+T
Refactor This...
Shows the Refactoring quick list.
💡 Hint: Ctrl + Alt + Shift + T = Trefactor This
🎯 Used for displaying a list of applicable refactorings for selected code to choose the optimal improvement method