in Emacs, edit multiple lines at once

前端 未结 8 1938
天涯浪人
天涯浪人 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:19

    It's as simple as this: C-x r t

    Some examples are here: http://ergoemacs.org/emacs/emacs_string-rectangle_ascii-art.html

    0 讨论(0)
  • 2020-12-22 17:19

    Rectangles are for simple stuff like deleting the same amount of spaces in adjacent lines.

    Otherwise keyboard macros are the way to go.

    0 讨论(0)
提交回复
热议问题