문제

How can I clone a line in KDevelop? Is there any shortcut or menu item for that?

도움이 되었습니까?

해결책

To duplicate lines up/down, use:

  • Ctrl+Alt+Up
  • Ctrl+Alt+Down

To move lines up/down, use:

  • Ctrl+Shift+Up
  • Ctrl+Shift+Down

See Editor->Tools->Scripts.

This is all implemented in Kate using JavaScript and can easily be extended.

To reassign the shortcuts, see Settings->Configure Shortcuts.

다른 팁

There is also the option to enable Copy/Cut the current line if no selection in Settings -> Editor -> Editing.

Then you can Ctrl+C and Ctrl+V any line.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top