Editing All Instances of a String in Notepad++

I have several instances of a variable or a phrase, and I want to rename it. How do I edit all of them at the same time in Notepad++?

2 Answers

CTRL+H to get to the Replace dialog (or Search ==> Replace via the menu).

Input the string to find and input the string to replace it with and then hit the 'replace all' button on the right.

1

You can also use Notepad++'s Mutli-Editing feature to do this inline.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest