有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
当前回答
如果你的windows电脑,你可以试试这个,它也是STS:
Ctrl + win + Alt + Down::将当前行或所选行复制到下方
Ctrl + win + Alt +向上::将当前行或所选行复制到上方
其他回答
在Windows 7中,禁用英特尔驱动程序的热键对我是有效的。然而,对于Windows 8,当我尝试这样做时,它阻止了eclipse获得Ctrl-Alt-Down键。我不得不改变英特尔驱动程序键绑定到Ctrl-Alt-F10(或其他它将接受)。Eclipse然后获得Ctrl-Alt-Down并复制该行。
在我的Mac上,默认设置是ALT+CMD+Down
您可以通过Eclipse -> Preferences(快捷键CMD+)和General -> Keys来更改/查看所有键绑定
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-D会删除一行 Ctrl-Z将取消删除,高亮显示整行 按Ctrl-X/C剪切或复制整行
与按Ctrl-Alt-Down再按Ctrl-X相比,其他用户建议的优点是它不会使eclipse认为文件以任何方式被更改。它也更快,即使用户使用Ctrl-Alt-Down/Up快捷键旋转屏幕也不会出现任何问题。因此,不需要为此重新映射捷径。
另一种方法是按Alt-Shift-Up,直到整条线都被选中。如果你走得太远,当然你可以用Alt-Shift-Down选择更少。
如果有人使用Mac电脑,CTRL + ALT + DOWN键不起作用。
试试,
alt+命令+下
它的工作原理。