有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
有人知道在Eclipse中复制/粘贴一行到新行,而不需要突出显示整行的快捷键吗?
ctrl-alt-down使我的整个屏幕上下颠倒(我在windows上)。有趣的是,这就是windows->首选项中指定的内容。
当前回答
另一种快捷方式是按Ctrl+Shift+L并选择要执行的命令并按enter
这是初学者的最佳练习。
其他回答
在Mac上,我尝试了linecopypaste,效果很好 cmd+c ->复制当前(未选中)行,就像Vi/Vim中的“yy”命令一样 cmd+v ->粘贴,就像Vi/Vim中的“p”命令一样
感谢Larsch的工作!
PD:在优胜美地使用Eclipse Luna 4.4.2
Ctrl-Alt-Down:将当前行或所选行复制到下方
Ctrl-Alt-Up::复制当前行或选定的行到上面
Ctrl-Shift-L:弹出快捷键列表
看到Windows /首选项- >常规- >键。
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).
在我的Mac上,默认设置是ALT+CMD+Down
您可以通过Eclipse -> Preferences(快捷键CMD+)和General -> Keys来更改/查看所有键绑定
我必须改变分配的键, 如。
Windows/首选项——>常规——>按键
在命令下选择“重复行” 点击“绑定” Ctrl + Shift + D