Try recording a macro that includes reformatting your code and assigning it a new key combination.
- First go to Edit → Macros → Start Macro. A small green box should appear in the lower right corner - the macro recording has begun ...
- Go to Code -> Reformat Code.
- Go to File → Save All.
- Go to the menu Edit → Macros → Stop Macro.
- (, )
- RubyMine → Preferences → Keymap (, ) .
- .
- cmd + s cntrl + s .
- "" "".