Duplicate a codeline in ABAP editor in eclipse
Duplicating a codeline in ABAP is done via CTRL+D.
Upps, I did that in ABAP in Eclipse: Where is my code? The editor just deleted my code and did not duplicate it. Grggghhhh….
Don’t worry. We can help:
Unfortunately the eclipse folks have defined CTRL-D as the delete operation of a code line.Years ago they forgot to ask SAP when they did that fatal decision 😯
In Eclipse you can duplicate a codeline via the shortcut CTRL+ALT+Up/Down.
Another step successfully done on your way from ABAP workbench towards ABAP in Eclipse.
A nice idea. Good to know knowledge.
Definitely Eclipse is more flexible than ABAP GUI based editor. In Eclipse, you can change the keyboard shortcuts for more commands than GUI based. So, you can set the Copy Line to Ctrl+D, in Windows > Preference > General > Keys. Find the command Delete Lines and remove the binding. Find the command Copy Lines and assign Ctrl+D as new binding.
Thanks a lot for the information. This I never tried before.
Very good addition to the blog. I will try.
Thank you all, Thomas and Naimesh.
Really good to know, I will also try.