Is it possible to configure Eclipse to cut lines with Ctrl+X? Is it more intuitive and leave Ctrl+D to duplicate lines? I am trying IntelliJ now and keep typing Ctrl+D to delete lines which duplicates.
EDIT : Wow, already five responses. I want Ctrl+X to cut the whole line if nothing is selected, otherwise do a regular cut. Same thing with Ctrl+C. It is a nice feature in IntelliJ.
Solution for Eclipse:Hold Alt and press ↑ and ↓ .
In Eclipse you can duplicate a codeline via the shortcut CTRL+ALT+Up/Down.
Every time I istall Eclipse I forget it doesn't have this functionality by default and have to search to fix it.
This plugin works for me and does exactly (and only) what the original poster asks for
http://code.google.com/p/copycutcurrentline/
cut
You can also swap the Binding for Delete Line and Duplicate Line commands within the Preferences dialog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With