Hacker News new | ask | show | jobs
by rc_kas 25 days ago
After 10 years I still have no shortcut key to "duplicate line up" which was an eclipse feature that I loved.

So I also hate jetbrains, give me my shortcut get guys!!

2 comments

Cmd+d on MacOS duplicates the current line. Is that what you want?
That is "duplicate line down" -- I want "duplicate line up" which copies the current line to the line above the cursor. My open request been sitting in jetbrains "ignore it" for many many years.
I don’t really get the difference but why don’t you use macros for that?

You can achieve anything with macros and you can give shortcuts to a named macros.

Macros are in the Edit > Macros menu. Add a shortcut to a macro in Settings , Keymap > search Macros, right click on Play Saved Macro and Add Keyboard Shortcut.

Install ideavim and press “yyp” :-)
Its "yyP" :-)