How do I enable a shortcut on Eclipse?
I used to work at some place that could select a line of code, and by pressing "ALT + SHIFT + DOWN_KEY/UP_KEY", it would copy this line below or above respectively. Now I work at some place else and this shortcut command does not w开发者_C百科ork. How can I enable it?
Are you sure it is ALT + SHIFT + UP/DOWN and not CTRL + ALT + UP/DOWN?
If I correctly understand your request, then what you need is to open the preference and go to General > Keys. Look for Copy Lines and Duplicate Lines.
You can use CTRL+ SHIFT+L to see a list of short cuts to check you remembering correctly.
Otherise you can customise/enble shortcuts using Window --> Preferences --> General --> Keys
As I use Linux, I found the problem. It has a shortcut registered. What you have to do is disable it. Go to System, ShortCut Keys, then you remove the shortcut "CTRL+ALT+UP" and "CTRL+ALT+DOWN". Done, it works.
精彩评论