18
Jan/06
54

Quick Tip: Notepad++ – Modify / Delete Macros

I use Notepad++ (v3.3 currently) for a lot of my development work, 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):

  1. From the top menu, select “Settings” => “Shortcut Mapper…”
  2. Scroll down near the very bottom (my macros started at item 60)
  3. Right-click and select either Modify or Delete (double click will act the same as selecting Modify)

Hope that helps someone!

Comments (53) Trackbacks (1)
  1. Dana
    12:43 pm on September 7th, 2006

    Thanks! This was a lifesaver!

    Please — no mailing lists.

  2. Penguin
    2:02 pm on November 18th, 2006

    Thanks, you saved me hours of research on Sourceforge’s forum…

  3. Jeanne
    8:54 pm on February 9th, 2007

    Thank you!!

  4. Roger
    8:16 pm on April 26th, 2007

    Yes…as stated thank you for that bit. There really ought to be a way to edit macros on the macro menu.

  5. Steve Wright
    10:18 am on July 10th, 2007

    Thanks so much!

  6. Sverrir
    6:38 am on August 28th, 2007

    Thanks… Now the only thing missing is a way to edit macros and possibly nest them so you can include macros in new ones.

  7. Aaron
    10:19 pm on September 5th, 2007

    u are so smart!!! thank you very much1

  8. harkpabst_meliantrop
    5:53 am on October 2nd, 2007

    Huh, still the same in 4.3. One more thank you …

  9. Wahoo
    10:21 pm on October 6th, 2007

    Thank you for sharing!

  10. Danilo
    2:55 pm on October 22nd, 2007

    Thx man… I was looking for this…! \o/

  11. Alan
    12:53 pm on November 15th, 2007

    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.

  12. VinTW
    3:22 pm on December 8th, 2007

    This tips is really helps me. Thanks very much!

  13. Anurag
    3:42 pm on December 21st, 2007

    Seriously, This was the 1st link in google for this problem and it helped me too.

  14. SomeGuy
    9:57 pm on March 26th, 2008

    Works in v4.6.

  15. pepito
    9:07 am on April 1st, 2008

    What I really expected to see is how I can edit the code of the macro. Anyway this is also useful

    Thanks

  16. Tamar
    1:56 pm on April 14th, 2008

    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.

  17. Frank
    9:21 am on April 21st, 2008

    One of the first hits on Google. Great tip.

  18. Wim Molenaar
    3:19 am on July 4th, 2008

    Looking for month’s for this option…

    Thanks!!!

  19. Julian
    9:38 pm on August 9th, 2008

    Thanks a lot for the tip. :)

  20. K. Woodard
    3:48 pm on August 24th, 2008

    Big Time Saver! Thanks

  21. Craig Newman
    2:20 pm on September 20th, 2008

    Thanks Sean for taking the time to document the tip. Your website is great. All the best!

  22. alidob
    4:57 am on September 22nd, 2008

    thanks, good hint!

  23. bcalmac
    12:21 pm on October 3rd, 2008

    great neuron saver!

  24. leonid
    3:20 am on October 17th, 2008

    Thanks

  25. Kevin
    10:39 pm on November 6th, 2008

    wow, thanks for posting this. i looked on the sourceforge site and could only find where others asked and NOBODY answered!

  26. Francesco Bongiovanni
    11:48 am on December 16th, 2008

    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

  27. kaba
    5:07 am on December 18th, 2008

    thanks!

  28. Paul
    6:28 am on December 27th, 2008

    Thanks a lot! I wanted to delete Notepad++ because I could not delete one macro. Now I’ll continue to use this editor! :)

  29. Beth
    5:33 pm on December 30th, 2008

    Thanks a bunch!!

  30. Ashish
    11:46 am on January 8th, 2009

    Thank you sir. I was looking for this for a long time. I reinstalled npp once because the shortcut became really annoying.

  31. Panagiotis
    2:17 pm on January 10th, 2009

    thank you

  32. SusanM
    11:33 pm on January 16th, 2009

    Thanks! Accurate and easy to find.

  33. xav
    8:25 am on January 17th, 2009

    Thx a lot !

  34. andy
    2:06 pm on February 4th, 2009

    Francesco Bongiovanni

    Thankyou – switched ‘puters and wanted to migrate my macros. This have saved me a lot of time!

    Cheers,

  35. BB
    2:37 am on March 4th, 2009

    This helped a lot. Should be the first link in Google search.

  36. JW
    3:51 pm on March 9th, 2009

    This totally saved my bacon!! Thanks!

  37. cochise
    3:12 am on May 26th, 2009

    thx

  38. Marco Ottolini
    8:39 am on June 8th, 2009

    Thank you: saved me a lot of time

  39. Rafael Kuvasney
    1:57 pm on June 23rd, 2009

    xxxxxxtremely useful! thank you very much!

  40. Carla
    4:10 am on July 8th, 2009

    Thank you very much!

  41. Sylvia
    10:26 am on July 9th, 2009

    Hurray! I’ve been trying to work out how to do that – never thought to look in the other menu!

  42. Budgy
    10:31 am on July 23rd, 2009

    you the man, thanks

  43. Joe
    11:12 am on September 2nd, 2009

    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.

  44. Sean
    11:22 am on September 2nd, 2009

    @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!

  45. grisaman
    12:04 pm on September 30th, 2009

    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

  46. d
    9:03 am on October 4th, 2009

    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

  47. Curmudgeon
    3:30 pm on November 2nd, 2009

    You goobers realize this is in the help file, right? Try an F1 from time to time.

  48. Dan
    2:27 am on November 12th, 2009

    Curmudgeon, you do realise this thread was started in 2007, right? How sure are you the help file has all these back in 2007?

  49. Ludi
    1:31 pm on November 26th, 2009

    Very usefull hint. Works very fine for me.

    Maybe that should be mentioned somewhere at a proper (official) place.

    Thank you!

  50. svend
    1:58 pm on December 29th, 2009

    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!

  51. svend
    1:59 pm on December 29th, 2009

    Correction: M$ Word. (Freudian slip!)

  52. Jacko
    12:21 am on February 23rd, 2010

    They’re stored in c:\Documents and Settings\\Application Data\Notepad++\shortcuts.xml

  53. China dev
    9:53 pm on March 3rd, 2010

    Thanks! I try to find this method for several days and at last I found it here!
    Also thanks jacko!

Leave a comment