Intellij IDEA 中 Eclipse 的精确复制快捷方式

Exact duplicate shortcut from Eclipse in Intellij IDEA

我是一个只使用 eclipse 的程序员。 现在是我想试用 intellij IDEA 的时候了,看看它是否比现在的 eclipse 更适合我。

我有一些基本的快捷键,我需要像以前一样使用这些快捷键。据我所知,这是不可能的。但也许你们更了解它。

1) 上下移动线条

在 Eclipse 中我使用 ALT + UPALT + 向下:

alt up/down 可以通过 "other" 中的 IDEA "move down/up" 命令完成:

但他们的行为不同。不幸的是 "too smart" 我会说......因为他们跟踪空白行并跳过这些,甚至带有注释。我只想向上或向下移动选定的行,就这么简单。

示例: 结果

and 在 Eclipse 中向上或向下移动时。在 Intellij IDEA 中会发生这种情况:

2) 上下重复行

在 Eclipse 中,我得到了这些快捷方式,一个是向上复制,另一个是向下复制:

在 Intellij IDEA 中,我会在 "Editor Actions" 下使用 "Duplicate Entire Lines",这非常适合我。 但是: 我只能使用一个方向,向上或向下,因为这个命令只存在一次。我都需要... :(


感谢您的帮助!

  1. IntelliJ IDEA 具有 移动行 Up/Down移动语句 Up/Down 操作。后者聪明,前者愚蠢。指定快捷方式并使用您喜欢的任何方式。

  2. 投票给this request or use this third-party plug-in

Plugin for IntelliJ IDEA to allow copy lines and block of code like in Eclipse IDE (Ctrl+Alt+UP and Ctrl+Alt+Down).