有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
当前回答
如果你的windows电脑,你可以试试这个,它也是STS:
Ctrl + win + Alt + Down::将当前行或所选行复制到下方
Ctrl + win + Alt +向上::将当前行或所选行复制到上方
其他回答
我已经为Eclipse编写了linecopypaste插件,它模仿了Visual Studio的复制/剪切/粘贴行为。我还发现了copycutcurrentline,它似乎做了同样的事情。
我用的是Windows 7。要禁用它,我所做的就是右键单击Windows桌面,选择“图形属性”->选项。然后在结果屏幕的左侧选择“关闭”。禁用所有热键组合。我认为没有办法只禁用其中一些,要么全部禁用,要么完全禁用。反正我也不需要。所以现在crtl+Alt+Up和crtl+Alt+ down工作为我在Eclipse和我的屏幕保持不变:) 我认为类似的选项在其他版本的Windows中也存在。玩得开心!
Ctrl +alt+下/上/左/右作为热键优先于eclipse设置。作为替代,我尝试了不同的方法。
Step 1: Triple click the line you want to copy & press `Ctrl`-`C`(This will
select & copy that entire line along with the `new line`).
Step 2: Put your cursor at the starting of the line where you want to to paste
your copied line & press `Ctrl`-`V`.(This will paste that entire line & will
push previous existing line to the new line, which we wanted in the first place).
在Windows 7中,禁用英特尔驱动程序的热键对我是有效的。然而,对于Windows 8,当我尝试这样做时,它阻止了eclipse获得Ctrl-Alt-Down键。我不得不改变英特尔驱动程序键绑定到Ctrl-Alt-F10(或其他它将接受)。Eclipse然后获得Ctrl-Alt-Down并复制该行。
对于mac, shift+alt+down_arrow在netbeans的编辑器中工作。