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

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


当前回答

对于个人使用,我添加了一个vim插件,如Vrapper到Eclipse,只使用yy复制整行。

其他回答

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上测试)[根据以下评论,也适用于Ubuntu, IBM RTC 4 / RSA 9]

在Eclipse中,按Ctrl+Shift+L 2 (或按Ctrl + 3 > type: Keys > Enter)。 在“键入筛选文本”(搜索)文本框中,键入“复制行” 选择筛选行,右键单击“Binding”字段,然后选择全部 按Ctrl + Shift + V 给好

从现在开始,对于任何你想复制的行,只需按Ctrl+Shift+V。

将文本从行首复制到光标位置:ctrl + insert

这是有效的,为我节省了很多时间。

在MAC中试试这个。

alt+命令+下

它的工作原理。

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

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

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