There's always a time to write code that needs to be ctrl+c,ctrl+v, and in Eclipse if you need to quickly copy a line up and down a line of code, there's a handy shortcut key to use. Place the cursor on a line, press and hold the Ctrl+alt+down, you can quickly copy a row below, press and hold Ctrl+alt+up, that is, you can quickly copy a row on it.
Here's one thing to note: Intel's display has a ctrl+alt+ arrow key for its display direction, and its response priority is higher. At this point you need to locate the monitor settings and go to the shortcut button to close the response. If you don't find it, you can also modify the Eclipse 's shortcut keys . The steps are as follows:
Step One: Window->preference->general->key:
Step two: Search Ctrl, modify the shortcut keys , the cursor stops in the edit box, directly press and hold the shortcut key you want:
Eclipse Usage and Tricks 12: quickly copy a row