Eclipse copy/paste entire line keyboard shortcut

后端 未结 25 3175
感动是毒
感动是毒 2020-12-07 07:05

Anyone know the keyboard shortcut to copy/paste a line into a new line in Eclipse, without having to highlight the entire line?

ctrl-alt

25条回答
  •  离开以前
    2020-12-07 08:11

    (Tested on Windows) [Per below comments, works as well in Ubuntu, IBM RTC 4 / RSA 9]

    1. In Eclipse, press Ctrl+Shift+L two times in succession (or Ctrl + 3 > type: Keys > Enter).
    2. In 'type filter text' (search) text box, type Copy Lines
    3. Select the filtered row, right click the 'Binding' field, and do Select All
    4. Press Ctrl+Shift+V
    5. Give OK

    From now on, for any line you want to duplicate, just press Ctrl+Shift+V.

提交回复
热议问题