Find / Replace swap in 8.2.1
-
So Notepad++ 8.2.1 introduces a new “swap” button in the Replace window, for swapping the data in the Find what and Replace with boxes:

Cool enough.
But what’s also cool about it, is it can be used for a multi-line search and replace, something N++ hasn’t been able to do before now.
Here’s how:
-
Select the multiline text you want to use as the replacement text. If you don’t have that text in your document (common), compose it there temporarily.
-
Press Ctrl+f. This will get your replacement text into the Find what box.
-
Press … the new swap button. This will get your replacement text into the Replace with box.
-
Select the multiline text you want to search for, and thus replace in the end. Press Ctrl+f.
-
Use the Replace or Replace All buttons to do the replacement(s).
Note that although your multiline text appears like it is one line in the boxes, it is actually multiline.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login