-
Open
Settings
(press CTRL+ALT+S) -
Click
Keymap
on the left list. -
There is a combobox that contains keymaps. Select one of them (default means IntelliJ of course. We can’t change any of pre-defined keymap however we can copy, edit and then use the edited one. So) we should copy “default” to change only redo mapping.
-
Give a new name to your copied keymap.
-
Right click on:
Main Menu -> Edit -> Redo
to click “Add Keyboard Shortcut” -
Press CTRL+Y
-
Click OK
-
Click “Remove” to “the shortcut is already assigned to other actions. Do you want to remove other assignments?”
-
If you want to use any “remove line” shortcut also, then go to delete line shortcut and give to it any other shortcut (like 5th step)
-
Click OK to close settings window.