On Windows, macros are saved in %AppData%\Notepad++\shortcuts.xml (Windows logo key + E and copy and paste %AppData%\Notepad++\ )
Or:
- On Windows <7 (including Win2008 / R2), macros are saved in
C:\Documents and Settings\%username%\Application Data\Notepad++\shortcuts.xml - In Windows 7 | 8
C:\Users\%username%\AppData\Roaming\Notepad++\shortcuts.xml
Note. You will need to close Notepad ++ if you have new macros that you want to export.
Here is an example:
<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>....
I added the 'abc' macro as proof of concept.
Harrison Mar 25 '11 at 12:44 2011-03-25 12:44
source share