如何在notepad ++中重复该行? [英] How can I repeat the line in notepad++?

查看:1025
本文介绍了如何在notepad ++中重复该行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在notepad ++中重复该行?

How can I repeat the line in notepad++ ?

例如,我有以下输入内容:

For example I have the following input:

a 01
a 02
a 03
a 04

我希望它成为:

a 01
a 01
a 02
a 02
a 03
a 03
a 04
a 04

因此,每行应显示两次.

推荐答案

如果您不介意半手动过程,则可以从第一行开始并重复以下组合键,直到到达文档末尾(您很快就可以做到)

If you don't mind the semi-manual process, you can start at the first line and repeat the following key combination until you reach the end of the document (you get very fast at this)

Ctrl + D Down Down

这将复制当前行,然后向下移动两次(移至新复制的行之后的行).

This duplicates the current line, then moves down twice (to the line following the newly duplicated one).

如果您有大型文档,可以将其记录为一个宏一次(请参见宏"菜单),然后重复使用 Ctrl + Shift + P (播放)-您只需按住这些键按下.或使用宏选项多次运行宏..."

If you have a large document, you can record this once as a macro (see the Macro menu), then use either Ctrl + Shift + P (Playback) repeatedly -- you can just hold those keys down. Or use the Macro option "Run a Macro Multiple Times..."

这篇关于如何在notepad ++中重复该行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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