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

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


当前回答

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

试试,

alt+命令+下

它的工作原理。

其他回答

对于mac, shift+alt+down_arrow在netbeans的编辑器中工作。

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默认快捷键ctrl alt↓工作

选择行:将光标放在要复制的行上,如果光标在行尾,则选择行,如果光标在行首,则选择ShiftHome 在ctrl alt↓或ctrl alt↑下面或上面复制一行(默认预期行为),但这里的关键是你需要选择一行/块

一些答案集中在禁用Windows或任何其他操作系统的屏幕旋转,这适用于防止意外按键。

Ctrl+Alt+Down复制当前行到下面像记事本++ (Ctrl+D)

如果你的整个屏幕是180°腐烂,那么你应该禁用你的热键设置。

右键单击—>图形选项—>热键—>禁用

现在你可以尝试快捷键Ctrl+Alt+Down

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

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