开发者

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.

How do I enable a shortcut on Eclipse?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜