Search code examples
notepad++

How do you perform find/replace in selected text with Notepad++


I have a C file I am editing with Notepad++, and there is a section of about 30 consecutive lines where I want to replace one word with another word. Is there a way to do a Find/Replace All with Notepad++ on only that section?


Solution

  • There is an 'In Selection' checkbox in the Notepad++ Find/Replace dialog, right next to the 'Replace All' button. Use that and you should be good to go.

    enter image description here