4

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++?

10

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
    is there no way notepad automatically knows which other var names to rename? I just want to rename a variable inside a function but outside of it there are plenty other vars with the same name. I'm looking for something like the ctrl-r function in netbeans. – Cold_Class Jun 29 '17 at 11:58
6

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

https://notepad-plus-plus.org/features/multi-editing.html

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.