有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?

ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。


当前回答

You have to turn off the graphics hot keys that flip the screen. If you're on Windows, you need to right click on the Windows desktop and select "Graphics Properties..." (or something similar depending on your version of Windows). This will bring up a screen where you can manage graphics and display options, look for a place where you can disable hot keys, sometimes it's hidden under something like "Options and Support". Turn off the CTRL + ALT + ↑ and CTRL + ALT + ↓ hotkeys (alternatively you can just disable all graphics hot keys if you're not using them).

其他回答

我在Linux上使用Ctrl + Shift + Alt + Down组合。

如果你想复制一行到剪贴板,你也可以使用这个技巧:

Ctrl-Alt-Down 紧随其后的是 Ctrl-X

缺点是复制该行的文件变脏了。

You have to turn off the graphics hot keys that flip the screen. If you're on Windows, you need to right click on the Windows desktop and select "Graphics Properties..." (or something similar depending on your version of Windows). This will bring up a screen where you can manage graphics and display options, look for a place where you can disable hot keys, sometimes it's hidden under something like "Options and Support". Turn off the CTRL + ALT + ↑ and CTRL + ALT + ↓ hotkeys (alternatively you can just disable all graphics hot keys if you're not using them).

在Windows 7中,禁用英特尔驱动程序的热键对我是有效的。然而,对于Windows 8,当我尝试这样做时,它阻止了eclipse获得Ctrl-Alt-Down键。我不得不改变英特尔驱动程序键绑定到Ctrl-Alt-F10(或其他它将接受)。Eclipse然后获得Ctrl-Alt-Down并复制该行。

我必须改变分配的键, 如。

Windows/首选项——>常规——>按键

在命令下选择“重复行” 点击“绑定” Ctrl + Shift + D