有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
当前回答
这是另一种方法:
1) Alt+Up and Alt+Down (or Alt+Down and Alt+Up, order does not matter)
2) Ctrl+C
当然vim的“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).
Ctrl-Alt-Down:将当前行或所选行复制到下方
Ctrl-Alt-Up::复制当前行或选定的行到上面
Ctrl-Shift-L:弹出快捷键列表
看到Windows /首选项- >常规- >键。
另一种快捷方式是按Ctrl+Shift+L并选择要执行的命令并按enter
这是初学者的最佳练习。
我用的是Windows 7。要禁用它,我所做的就是右键单击Windows桌面,选择“图形属性”->选项。然后在结果屏幕的左侧选择“关闭”。禁用所有热键组合。我认为没有办法只禁用其中一些,要么全部禁用,要么完全禁用。反正我也不需要。所以现在crtl+Alt+Up和crtl+Alt+ down工作为我在Eclipse和我的屏幕保持不变:) 我认为类似的选项在其他版本的Windows中也存在。玩得开心!
(在Windows上测试)[根据以下评论,也适用于Ubuntu, IBM RTC 4 / RSA 9]
在Eclipse中,按Ctrl+Shift+L 2 (或按Ctrl + 3 > type: Keys > Enter)。 在“键入筛选文本”(搜索)文本框中,键入“复制行” 选择筛选行,右键单击“Binding”字段,然后选择全部 按Ctrl + Shift + V 给好
从现在开始,对于任何你想复制的行,只需按Ctrl+Shift+V。