in Emacs, edit multiple lines at once

前端 未结 8 2005
天涯浪人
天涯浪人 2020-12-22 16:29

I believe textmate has a mode where if you start typing, the same thing will be entered on all the lines you\'ve selected. Is there something similar to this in emacs? I\'m

8条回答
  •  误落风尘
    2020-12-22 17:18

    One of the solutions is using CUA mode. Activate cua mode with M-x cua-mode, select rectangle begin: first press C-Enter then move cursor with standard movement commands to make selection, now pressing enter at any time will cycle cursor through corners of the rectangle enabling you to prepend or append text to the selection.

提交回复
热议问题