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

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


当前回答

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

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

其他回答

Ctrl+Alt+Down / Ctrl+Alt+Up翻转我的屏幕,所以我在Eclipse快捷方式中覆盖了它 窗口=>首选项=>常规=>按键。 搜索“dupl”可以找到Duplicate Lines命令。我重写了默认设置,并选择Ctrl+Shift+D。对我来说,这很容易记住,就像Ctrl+D删除行一样

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).

它和我一起工作, Eclipse + Spring工具套件。

alt+命令+下

这是另一种方法:

1) Alt+Up and Alt+Down (or Alt+Down and Alt+Up, order does not matter)
2) Ctrl+C

当然vim的“yy”是最快的:)

如果有人使用Mac电脑,CTRL + ALT + DOWN键不起作用。

试试,

alt+命令+下

它的工作原理。