有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
当前回答
按Ctrl-D会删除一行 Ctrl-Z将取消删除,高亮显示整行 按Ctrl-X/C剪切或复制整行
与按Ctrl-Alt-Down再按Ctrl-X相比,其他用户建议的优点是它不会使eclipse认为文件以任何方式被更改。它也更快,即使用户使用Ctrl-Alt-Down/Up快捷键旋转屏幕也不会出现任何问题。因此,不需要为此重新映射捷径。
另一种方法是按Alt-Shift-Up,直到整条线都被选中。如果你走得太远,当然你可以用Alt-Shift-Down选择更少。
其他回答
(在Windows上测试)[根据以下评论,也适用于Ubuntu, IBM RTC 4 / RSA 9]
在Eclipse中,按Ctrl+Shift+L 2 (或按Ctrl + 3 > type: Keys > Enter)。 在“键入筛选文本”(搜索)文本框中,键入“复制行” 选择筛选行,右键单击“Binding”字段,然后选择全部 按Ctrl + Shift + V 给好
从现在开始,对于任何你想复制的行,只需按Ctrl+Shift+V。
在Eclipse中,我们可以将任何命令分配给任何给定的操作 从菜单栏转到 窗口>首选项 然后寻找钥匙 然后搜索复制行 然后单击复制行,然后单击绑定中的命令 并执行一个命令,你想使用复制行我使用ctrl+shift+d 你可以选择任何你想要的
另一种快捷方式是按Ctrl+Shift+L并选择要执行的命令并按enter
这是初学者的最佳练习。
Ctrl+Alt+Down复制当前行到下面像记事本++ (Ctrl+D)
如果你的整个屏幕是180°腐烂,那么你应该禁用你的热键设置。
右键单击—>图形选项—>热键—>禁用
现在你可以尝试快捷键Ctrl+Alt+Down
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).