Notepad++ 多重编辑 [英] Notepad++ Multi editing

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

问题描述

如何在 Notepad++ 中拥有多个光标?

How can I have multiple cursors in Notepad++?

我会有几个制表符分隔的值.我需要为所有这些值编写一个查询.例如,如果我得到一个具有如下值的 Excel 文件:

I will have a couple of tab delimited values . I need to write a query for all of these values. For example, if I get an Excel file with values like this:

1234 xyz pqr
2345 sdf kkk
...

我想将整个数据复制到 Notepad++ 并编写查询,同时插入所有值.

I want to copy this whole piece of data into Notepad++ and write the query, inserting all the values at once.

像这样:

Insert into tbl (1234, xyz) where clm = 'pqr'
Insert into tbl (2345, sdf) where clm = 'kkk'
...

我曾经用我以前的文本编辑器 Ultraedit 来做这件事.可以使用 Notepad++ 来完成吗?

I used to do it with my previous text editor Ultraedit. Can this be done using Notepad++?

推荐答案

是:只需按住 Alt 键,单击并拖动以选择要编辑其列的行,然后开始打字.

Yes: simply press and hold the Alt key, click and drag to select the lines whose columns you wish to edit, and begin typing.

您还可以转到设置 > 首选项...,然后在编辑选项卡中,打开多重编辑,以启用多个单独区域或列的选择要一次编辑的文本.

You can also go to Settings > Preferences..., and in the Editing tab, turn on multi-editing, to enable selection of multiple separate regions or columns of text to edit at once.

它更加直观,因为您可以在键入时实时看到您的编辑.

It's much more intuitive, as you can see your edits live as you type.

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

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