

It has some limitations and you may have to try a few times to get it right. This is a very handy feature that is easy to learn and use. Record your steps once, then run them as many times as you need! Save time by using Notepad++ macros to automate repetitive steps.


You can use either the button on the toolbar or through the menu Macro → Playback:ħ. You can use either the button on the toolbar or through the menu Macro → Stop Recording:Ħ. Once you have made your edits, ensure that the caret is placed at the beginning of the next line or block of text:ĥ. Deleted the line break using CTRL+Delete.Deleted the period and spaces using CTRL+Delete.In this example, we did the following steps: This might require a few attempts to get right the first time, until you get used to thinking like a macro 🤖 Edit the text step by step in a way that is repeatable for each line. You can use either the button on the toolbar or through the menu Macro → Start Recording:Ĥ. We will record our macro on this first line, so this will be the starting position.ģ. Paste your text, and place the caret at the start of the first line. Notepad++ macros work on lines, and having word wrap enabled might interfere with your results.Ģ. Make sure that you have the Word Wrap option disabled. As with any kind of automation: the more data you work with, the more time you save 🤓 Example: Notepad++ Macros that Run on All Linesġ.

It would not take a lot of time to rewrite this particular list manually, but it takes a fraction of the time using macros. To do this, we will record the steps we make on one line, and then run the steps on all the remaining lines. In this example, we want to transform an ordered list of names into a comma-separated list with each name inside single quotes. Just record your steps once, then run them as many times as you need! Do you ever find yourself doing the same things over and over and over again when working on your text files? You can save a lot of time by recording and running Notepad++ macros to automate these repetitive steps.
