How do I duplicate a whole line in Emacs?

前端 未结 30 1078
时光取名叫无心
时光取名叫无心 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条回答
  •  Happy的楠姐
    2020-12-04 05:36

    The simplest way is Chris Conway's method.

    C-a C-SPACE C-n M-w C-y
    

    That's the default way mandated by EMACS. In my opinion, it's better to use the standard. I am always careful towards customization one's own key-binding in EMACS. EMACS is already powerful enough, I think we should try our best to adapt to its own key-bindings.

    Though it's a bit lengthy, but when you are used to it, you can do fast and will find this is fun!

提交回复
热议问题