Refactoring source code
Refactoring is the process of modifying source code in order to make it easier to maintain and extend, but without changing its behavior. RubyMine supports various refactoring operations for different programming languages. This topic mostly covers refactorings available for Ruby.
Select an item to refactor. You can select a file/folder in the Project tool window or expression/symbol in the editor.
Press Ctrl+Shift+Alt+T to open a pop-up list of refactorings that can be selected. Alternatively, you can use a keyboard shortcut for a specific refactoring.
If you need to undo your refactoring, press Ctrl+Z.
Configure refactoring settings
In the Settings/Preferences dialog (Ctrl+Alt+S), select .
On the General page, in the Refactorings section, adjust the refactoring options and click OK.
Refactorings supported in RubyMine