在 Emacs 中,一次编辑多行 [英] in Emacs, edit multiple lines at once

查看:13
本文介绍了在 Emacs 中,一次编辑多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信 textmate 有一种模式,如果您开始输入,则会在您选择的所有行上输入相同的内容.emacs 中有类似的东西吗?我猜有一种矩形可以帮助我,但我不确定如何...

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 guessing there's a way rectangles can help me, but I'm not sure how...

推荐答案

就这么简单:Cx rt

这里有一些例子:http://ergoemacs.org/emacs/emacs_string-rectangle_ascii-art.html

这篇关于在 Emacs 中,一次编辑多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆