回答(23)
2 years ago
Ctrl-Alt-Down:将当前行或选定行复制到下面
Ctrl-Alt-Up ::将当前行或选定行复制到上面
Ctrl-Shift-L:显示快捷键列表
请参阅Windows /首选项 – >常规 – >键 .
2 years ago
(在Windows中测试)
在Eclipse中,依次按Ctrl Shift L two times .
在’type filter text’文本框中,键入 Copy Lines
选择已过滤的行,右键单击”Binding”字段,然后执行 Select All
按Ctrl Shift V.
给 OK
从现在开始,对于要复制的任何行,只需按Ctrl Shift V.
2 years ago
您必须关闭翻转屏幕的图形热键 . 如果你’re on Windows, you need to right click on the Windows desktop and select 1285291 (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’隐藏在”Options and Support”之类的东西下 . 关闭CTRL ALT Up和CTRL ALT Down热键(或者,如果你不使用它们,你可以禁用所有图形热键) .
2 years ago
如果你想将一行复制到剪贴板,你也可以使用这个技巧:
Ctrl-Alt-Down后跟Ctrl-X
缺点是复制行的文件变脏 .
2 years ago
Ctrl-D会删除一行
Ctrl-Z将撤消删除,并使用整行
Ctrl-X / C剪切或复制整行
其他用户建议使用Ctrl-Alt-Down后跟Ctrl-X的优点是,即使用户使用Ctrl-Alt-Down / Up键盘shorcut进行旋转屏幕问题,它也不会更快并且不会导致任何问题 . 因此,没有必要为此重新映射shorcuts .
另一种方法是按Alt-Shift-Up直到选择整行 . 如果你走得太远,当然你可以用Alt-Shift-Down选择更少 .
2 years ago
我已经为Eclipse编写了linecopypaste插件,模仿Visual Studio ‘s copy/cut/paste behaviour. I’ ve也找到了copycutcurrentline,它似乎也是这样做的 .
2 years ago
在我的Mac上,默认设置是ALT CMD Down
您可以通过Eclipse – > Preferences(快捷键CMD)然后选择General – > Keys来更改/查看所有键绑定
2 years ago
如果您的Window PC,您可以试试这个,它也适用于STS:
Ctrl win Alt Down ::将当前行或选定行复制到下面
Ctrl win Alt Up ::将当前行或选定行复制到上面
2 years ago
Ctrl Alt Down将当前行复制到下面,如记事本(Ctrl D)
如果整个屏幕旋转180°,则应禁用热键设置 .
右键单击 – >图形选项 – >热键 – >禁用
现在你已经完成了尝试快捷键Ctrl Alt Down
2 years ago
如果有人使用Mac计算机,则CTRL ALT DOWN键不起作用 .
尝试一下,
ALT COMMAND DOWN
有用 .
2 years ago
在MAC中尝试这个 .
ALT COMMAND DOWN
有用 .
2 years ago
美国高防vps
在Mac上,我已经尝试了linecopypaste并且它运行得很好cmd c – >复制当前(未选中)行,就像在Vi / Vim cmd v中的”yy”命令 – >粘贴它,就像在Vi / Vim中的”p”命令一样
感谢Larsch的工作!
PD:在Yosemite中使用Eclipse Luna 4.4.2
2 years ago
我必须更改分配的密钥,例如
Windows /首选项 – >常规 – >键
在命令下选择”Duplicate Lines”单击”Binding” Ctrl Shift D.
2 years ago
我正在使用Windows 7.要禁用我所做的就是右键单击Windows桌面并选择“图形属性” – >选项 . 然后在结果屏幕的左侧选择“关” . 这会禁用所有热键组合 . 我认为没有办法只禁用它们的全部或全部 . 无论如何我不需要它们 . 所以现在crtl Alt Up和Crtl Alt down在Eclipse中工作,我的屏幕保持不变:)我认为在其他版本的Windows中也存在类似的选项 . 玩得开心 :)
2 years ago
另一种方法:
1) Alt+Up and Alt+Down (or Alt+Down and Alt+Up, order does not matter)
2) Ctrl+C
但当然vim的“yy”是最快的:)
2 years ago
禁用英特尔驱动程序的热键对我来说适用于Windows 7.但是,对于Windows 8,当我尝试这样做时,它阻止了eclipse获得Ctrl-Alt-Down键盘 . 我不得不将英特尔驱动程序密钥绑定更改为Ctrl-Alt-F10(或者它将接受的其他内容) . Eclipse然后获取Ctrl-Alt-Down并复制该行 .
2 years ago
对于mac,shift alt down_arrow在netbeans的编辑器中有效 .
2 years ago
对于个人用途,我将一个像Vrapper这样的vim插件添加到Eclipse中并使用 yy 复制整行 .
2 years ago
Ctrl Alt Down / Ctrl Alt Up翻转我的屏幕,所以我通过Window => Preferences => General => Keys在Eclipse快捷方式中覆盖它 . 搜索”dupl”以查找“复制线”命令 . 我覆盖了默认设置并选择了Ctrl Shift D.对我来说,这很容易记住就像Ctrl D一样删除线条
2 years ago
ctrl alt down / up / left / right优先于eclipse设置作为热键 . 作为替代方案,我尝试不同的方法 .
Step 1: Triple click the line you want to copy & press `Ctrl`-`C`(This will
select & copy that entire line along with the `new line`).
Step 2: Put your cursor at the starting of the line where you want to to paste
your copied line & press `Ctrl`-`V`.(This will paste that entire line & will
push previous existing line to the new line, which we wanted in the first place).
2 years ago
Ctrl Shift Alt Down的组合在Linux上为我工作 .
2 years ago
要将文本从行的开头复制到光标位置:ctrl insert
它完成了这项工作,为我节省了大量时间 .
2 years ago
另一种快捷方式是按Ctrl Shift L并选择要执行的命令,然后按Enter键
它是初学者的最佳实践 .
88193582