How do I duplicate a whole line in Emacs?

前端 未结 30 1152
时光取名叫无心
时光取名叫无心 2020-12-04 05:20

I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least num

30条回答
  •  余生分开走
    2020-12-04 05:38

    I cannot believe all these complicated solutions. This is two keystrokes:

    runs the command kill-whole-line

    C-/ runs the command undo

    So C-/ to "copy" a whole line (kill and undo).

    You can, of course, combine this with numeric and negative args to kill multiple lines either forward or backward.

提交回复
热议问题