How to select/copy current line without using mouse in IntelliJ IDEA

后端 未结 5 638
礼貌的吻别
礼貌的吻别 2020-12-29 19:59

To duplicate lines I use

Ctrl + D

Is there a similar way to select/copy current line using keyboard in IntelliJ IDEA?

5条回答
  •  梦毁少年i
    2020-12-29 20:23

    In Mac OS ,i would like to keymap :

    Command + D (Duplicate Line Or Selection) ==> Command + D (Duplicate Entire Lines)

    This can duplicate a/multi line with the caret (insertion point) ,work in IntelliJ 2018.1.

    or another way:

    copy multiline with the caret (insertion point),not change keymapp, copy extra newline feed hidden "\n":

提交回复
热议问题