I use Notepad++ (v3.3 currently) for a lot of my development work, this web and I noticed that I couldn’t find any sites that mention how to delete or edit a macro once you create it.
Here is the rather simple method (simple once you find it anyway… it’s not in the “Macro” menu):
- From the top menu, prostate select “Settings” => “Shortcut Mapper…”
- Scroll down near the very bottom (my macros started at item 60)
- Right-click and select either Modify or Delete (double click will act the same as selecting Modify)
Hope that helps someone!
Thanks! This was a lifesaver!
Please — no mailing lists.
Thanks, you saved me hours of research on Sourceforge’s forum…
Thank you!!
Yes…as stated thank you for that bit. There really ought to be a way to edit macros on the macro menu.
Thanks so much!
Thanks… Now the only thing missing is a way to edit macros and possibly nest them so you can include macros in new ones.
u are so smart!!! thank you very much1
Huh, still the same in 4.3. One more thank you …
Thank you for sharing!
Thx man… I was looking for this…! \o/
Thanks a lot. Still the same in 4.5. The modify is just changing the shortcut. I am wondering if we can edit the macro by changing the code associated with the macro, as many programs do.
This tips is really helps me. Thanks very much!
Seriously, This was the 1st link in google for this problem and it helped me too.
Works in v4.6.
What I really expected to see is how I can edit the code of the macro. Anyway this is also useful
Thanks
Thanks a lot!
I accidently assigned the same shortcut to two macros and had no idea how to undo this. This site, the first hit in Google, saved me from a) recording the macro again and b) a lot of searching on other sites.
One of the first hits on Google. Great tip.
Looking for month’s for this option…
Thanks!!!
Thanks a lot for the tip. :)
Big Time Saver! Thanks
Thanks Sean for taking the time to document the tip. Your website is great. All the best!
thanks, good hint!
great neuron saver!
Thanks
wow, thanks for posting this. i looked on the sourceforge site and could only find where others asked and NOBODY answered!
in order to go an modify an existing macro (in case you’ve made a mistake)
go to “C:\Documents and Settings\francesco\Application Data\Notepad++\shortcuts.xml”
:D
thanks!
Thanks a lot! I wanted to delete Notepad++ because I could not delete one macro. Now I’ll continue to use this editor! :)
Thanks a bunch!!
Thank you sir. I was looking for this for a long time. I reinstalled npp once because the shortcut became really annoying.
thank you
Thanks! Accurate and easy to find.
Thx a lot !
Francesco Bongiovanni
Thankyou – switched ‘puters and wanted to migrate my macros. This have saved me a lot of time!
Cheers,
This helped a lot. Should be the first link in Google search.
This totally saved my bacon!! Thanks!
thx
Thank you: saved me a lot of time
xxxxxxtremely useful! thank you very much!
Thank you very much!
Hurray! I’ve been trying to work out how to do that – never thought to look in the other menu!
you the man, thanks
I must still be missing something. Is there a way to edit the macro? Not its properties or shortcut, but the steps? I thought there was. This is why I chose Notepad++ over TextPad.
Thanks.
@Joe as far as I know, there is no way to do that. I think you just have to record another macro. If anyone knows differently, please leave a comment!
I am quoting Francesco, follow the path below and find that xml file, inside you will find all your macros and you can edit them as you wish. Make sure you can see hidden folders and windows hidden folders before attempting to browse for the file. I hope this helps.
“in order to go an modify an existing macro (in case you’ve made a mistake)
go to “C:\Documents and Settings\francesco\Application Data\Notepad++\shortcuts.xml—
:D
If you want to edit or delete the actual contents/operations of the macros, see the following:
http://stackoverflow.com/questions/362444/how-to-write-macro-for-notepad
You goobers realize this is in the help file, right? Try an F1 from time to time.
Curmudgeon, you do realise this thread was started in 2007, right? How sure are you the help file has all these back in 2007?
Very usefull hint. Works very fine for me.
Maybe that should be mentioned somewhere at a proper (official) place.
Thank you!
Thanks for the tip, Sean.
@d and Francesco:
Actually, user-created macros are *not* being saved in shortcuts.xml as that StackOverflow post (and many other websites) state. At least not in my version (5.4.2). Haven’t been able to find where they’re stored yet.
Quite frustrating to be working so hard to figure out how to edit a macro in a tool geared towards programmers. Even M$ World let you edit macros!