Notepad++ 在每行添加数字 [英] Notepad++ add number in each line

查看:210
本文介绍了Notepad++ 在每行添加数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文本文件中有以下数据

I have the following data in a text file

p=1
p=1
p=1
p=1

等等.我在 Notepad++ 中打开该文件.

etc. I open that file in Notepad++.

怎么改成

p=1
p=2
p=3
p=4

推荐答案

您可以使用列编辑器"模式.首先,通过按住 Alt 并向下拖动列来选择所需的列.然后转到编辑->列编辑器",您将得到一个如下所示的框:

You can use the "Column Editor" mode. First, select the column you want by holding Alt and dragging down the column. Then go to "Edit->Column Editor", you will get a box that looks like this:

选择要插入的数字"按钮,然后选择起始值和增量.它将用您想要的值替换该列.

Choose the "Number to Insert" button, then choose the starting value and the increment. It will replace the column with the values you want.

这篇关于Notepad++ 在每行添加数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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