当前位置:网站首页>Notepad++--宏(记录操作过程)
Notepad++--宏(记录操作过程)
2022-06-29 19:44:00 【IT利刃出鞘】
原文网址:Notepad++--宏(记录操作过程)_IT利刃出鞘的博客-CSDN博客
简介
说明
本文用示例介绍Notepad++的宏。
宏的作用
1.可以使用宏录制自己的行为,然后自动执行,解决重复性操作的困扰。
2.可以使用宏来记录快捷键,它比系统的快捷键优先级更高。
宏的快捷键
设置=> 快捷键管理=> 宏
我的快捷键 | 原来快捷键 | 作用 | 描述 |
alt+x | 无 | 选中行(不包含开头空白字符) | 自定义的宏 |
ctrl+d | 无 | 复制行 | 自定义的宏 |
示例
示例1:选择行并复制行
宏=> “开始录制”=> 按下“Home”=> 按下“Shift+End”=> 按下“Ctrl+C”=>
宏=> “停止录制”=> 宏=> “保存录制宏”=> 定义快捷键为“alt+x”
注:以上“开始录制”等在工具栏也有相应图标。
示例2:输入xxx0到xxx9
(1)将数字输入好比如:3,3是该行第一字符,此时光标在3后边。
(2)开始录制宏=> Home=> Shift+End(选中行)=> Ctrl+C
(3)End=> 回车=> Ctrl+V (反复9次)(目前光标是在最后一个3后面)
(4)输入9=> 上方向键=> 输入8=> 上方向键=> 以此类推到输入0
(5)停止录制=> 保存录制宏=> 名字写为:数字序列10,快捷键选择F9。
使用方法:输入数字xx,自动完成后从xx0到xx9都输出了
示例3:输入xxx00到xxx99(需要用到示例2)
(1)将数字输入好比如:3,3是该行第一字符,此时光标在3后边。
(2)开始录制宏=> Home=> Shift+End(选中行)=> Ctrl+C
(3)End=> 回车=> Ctrl+V (反复9次)(目前光标是在最后一个3后面)
(4)输入9=> 上方向键=> 输入8=> 上方向键=> 以此类推到输入0(目前光标在30后面)
(5)F9(示例2的快捷键)=> 将光标移动到31后面=> F9(以此类推,直到光标移动到39后面,按F9)
(6)停止录制=> 保存录制宏=> 名字写为:数字序列100,快捷键选择F10。
使用方法:输入数字xx,自动完成后从xx00到xx99都输出了
边栏推荐
- nacos 问题
- How to install and use computer SSD hard disk
- 【观察】软通动力刘天文:拥抱变化“顺势而为”,做中国数字经济“使能者”...
- 软件测试逻辑覆盖相关理解
- Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!
- 做白银k线图有多重要?
- 软件工程专业大二,之前的学习情况不太好该怎么规划后续发展路线
- npm ERR! fatal: early EOF npm ERR! fatal: index-pack failed
- 物理验证LVS流程和技术点滴(上)
- Have you mastered all the testing methods of technology to ensure quality and software testing?
猜你喜欢
La collection numérique Meng xiangshun, artiste national du tigre peint, est disponible en quantité limitée et est offerte avec Maotai de l'année du tigre
数据基础设施升级窗口下,AI 新引擎的技术方法论
Rejected by a large company? Tencent experts summarized 11 reasons for being rejected!
KDD 2022 | 协同过滤中考虑表征对齐和均匀性
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
Connaissance générale des paramètres de sécurité du serveur Cloud
[network orientation training] - Enterprise Park Network Design - [had done]
JVM (4) bytecode technology + runtime optimization
[USB flash disk test] in order to transfer the data at the bottom of the pressure box, I bought a 2T USB flash disk, and the test result is only 47g~
How important is it to make a silver K-line chart?
随机推荐
JVM (4) bytecode technology + runtime optimization
MBA-day19 如果p则q矛盾关系p 且非q
Test method learning
One hour to build a sample scenario sound network to release lingfalcon Internet of things cloud platform
jfinal中如何使用过滤器监控Druid监听SQL执行?
Go: how to write a correct UDP server
[sword finger offer] 51 Reverse pair in array
一个mysql里有3306端口下,一个mysql有20多个数据库,怎么一键备份20多个数据库,做系统备份,防止数据误删除?
La collection numérique Meng xiangshun, artiste national du tigre peint, est disponible en quantité limitée et est offerte avec Maotai de l'année du tigre
Luoqingqi: has high-end household appliances become a red sea? Casati took the lead in breaking the game
go: 如何编写一个正确的udp服务端
idea中方法上没有小绿色三角
Have you mastered all the testing methods of technology to ensure quality and software testing?
WPS和Excele
云服务器的安全设置常识
罗清启:高端家电已成红海?卡萨帝率先破局
社区访谈丨一个IT新人眼中的JumpServer开源堡垒机
JVM(4) 字节码技术+运行期优化
福昕软件受邀亮相2022先进制造业数智发展论坛
[boutique] detailed explanation of Pinia