记事本++中记录的宏存储在哪里? [英] Where are the recorded macros stored in Notepad++?

查看:17
本文介绍了记事本++中记录的宏存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我录制了一个宏,想与同事分享.

I have recorded a macro that I want to share with my work colleague.

这些录制的宏保存在什么位置,以便我可以添加到他的机器上?

In what location are these recorded macros saved, so that I can add it to his machine?

如果有兴趣,该宏用于获取值列表并添加引号和逗号,以便可以在 SQL 查询的 WHERE 子句中使用 (WHERE x IN ('value1','value2','value3')).

If interested, the macro is for taking a list of values and adding quotes and comma so that it can be used in the WHERE clause of of an SQL query (WHERE x IN ('value1','value2','value3')).

推荐答案

在 Windows 中,宏保存在 %AppData%Notepad++shortcuts.xml(Windows 徽标键 + E复制粘贴 %AppData%Notepad++)

In Windows the macros are saved at %AppData%Notepad++shortcuts.xml (Windows logo key + E and copy&paste %AppData%Notepad++)

或者:

  • 在 Windows 中
  • 7 (包括 Win2008/R2) 宏保存在 C:Documents 和Settings\%username%Application DataNotepad++shortcuts.xml
  • 在 Windows 7|8|10 中C:Users\%username%AppDataRoamingNotepad++shortcuts.xml

注意:如果您有任何要导出"的新宏,则需要关闭 Notepad++.

Note: You will need to close Notepad++ if you have any new macros you want to 'export'.

这是一个例子:

<NotepadPlus>
    <InternalCommands />
    <Macros>
        <Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
            <Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
            <Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
        </Macro>
        <Macro name="abc" Ctrl="no" Alt="no" Shift="no" Key="0">
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="b" />
            <Action type="1" message="2170" wParam="0" lParam="0" sParam="c" />
        </Macro>
    </Macros>
    <UserDefinedCommands>....

我添加了abc"宏作为概念验证.

I added the 'abc' macro as a proof-of-concept.

这篇关于记事本++中记录的宏存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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