Ctrl+y提示下面内容

use ctrl+y redo or to delete line?
This behavior can be changed later in Settings|Keymap.

IntelliJ IDEA  删除整行快捷键

选择Delete line即可。

至于恢复撤销也就是Redo可以使用快捷键ctrl+shift+z