Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 426
Thomas Avatar asked Feb 24 '11 21:02

Thomas


1 Answers

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

like image 177
whatsisname Avatar answered Oct 19 '22 16:10

whatsisname