Eclipse has a very handy shortcut key (of course Eclipse's handy shortcut key has N) Ctrl+alt+up/down, which is used to copy the contents of the current line, is simple, places the cursor anywhere with the line you want to copy, and then presses the shortcut key Ctrl+alt+up/down ( Up and down, respectively, correspond to the keys on the keyboard, and the current contents of the line are copied on the previous or next line of the current row, and the cursor is positioned after the copied row.
After the Win7 was installed, it was found that the Ctrl+alt+down was not expected after the eclipse was pressed, but that the whole windows turned upside down and the up effect was the same, and it was also known that the shortcut key had been used for other uses in Win7, I'm just too lazy to find out. How to disable the shortcut key in Win7.
Used for a while, today in Eclipse copy a line of content suddenly found in Ctrl + C, CTRL + How so troublesome, has been using shortcut keys accustomed to, so decided to solve this problem, the Internet to find a long time to find that the original is not Win7 shortcut keys, but the graphics driver shortcut keys, The specific solutions are as follows:
Java code
Right-click on the desktop to select "Graphics Options"-"Shortcut", check "Disable" can be.
P.S.
The same as the eclipse's shortcut key is Alt+up/down, used to move the contents of the current line up and down, which I think is more practical, I have seen many people to move the contents of a line of code to use the mouse to select, and then ctrl+x, CTRL + V These steps to complete, Every time I have the urge to tell him about the shortcut keys. Although it is a small detail, but if the use of habits, the efficiency of the improvement, I think not just a little bit so simple.
The figure is a screenshot of the shortcut keys set in Eclipse, and you can customize the shortcut keys according to your own usage habits.