notepad++ - 有什么办法可以在任何文本编辑器中做到这一点?

标签 notepad++ notepad

我有一个文件,就像

email = myemail@gmail.com
email = myemail@gmail.com
email = myemail@gmail.com

我可以做成这样吗?
email = myemail1@gmail.com
email = myemail2@gmail.com
email = myemail3@gmail.com

我可以在任何文本编辑器中执行此操作吗?或者还有其他方法吗?谢谢。

最佳答案

我会说使用 Vim ,但对于 Notepad++ :

hold Alt and select the column of numbers that you wish to change. Then go to Edit->Column Editor and select the Number to Insert radio button in the window that appears. Then specify your initial number and increment, and hit OK. It should write out the incremented numbers.



复制自 here .

要应用它,请为 @gmail.com 做一次然后是 1,2,3 ,最后是前缀 email = myemail .

我真的很喜欢推荐 vim(再次),你可以用单行程序做很多这样的事情。

关于notepad++ - 有什么办法可以在任何文本编辑器中做到这一点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13226054/

相关文章:

记事本的 Python 子进程

python - 如何运行 Python 脚本(使用 Notepad++)

web - 如何将字体导入Notepad++?

windows - 在 Subversion 中使用 Windows 记事本作为提交日志消息编辑器

javascript - 即使刷新后也能保留所写笔记的记事本

c# - 无法将 key (字符串)发送到记事本

c# - 如何获取记事本文件保存位置

python - Emmet - Notepad++ "Unknown exception"

regex - NotePad++ 正则表达式删除包含嵌入标签的 HTML 标签

python - 持续更新NppExec控制台中的Python脚本[Notepad++]