Search code examples
rubykeyboard-shortcutsrubymine

How to indent part of code in rubymine and keyboard shortcuts


I am trying to indent part of my code in Rubymine editor.

Is there a way how to do this fast using keyboard shortcuts?

Update

Example

Let say I have a file with 200 lines. With keyboard shortcut and keyboard ( w/o mouse selection ) I want to select e.g. lines 10 to 20 and this lines indent with tab or outdent with shift-tab.


Solution

    • Navigate to the first line

    • Hold down shift

    • Navigate to the last line

    • Press Tab or shiftTab as appropriate