Monday, September 5, 2016

Notepad++ Find in Files

Several months ago, I wrote a post about some of the cool things that Notepad++ can do. Today, I'm going to share another feature that saved me a lot of headache - Find in Files.

After installing an update to an important application, I discovered that the installation path had changed. This was a problem because I had a folder full of scripts that reference this path. Thanks to Notepad++, I was able to fix this in about 3 minutes.

Using Find in Files

This should go without saying, but before you make any modifications to your files, make sure that you have good backups of everything.

When you're confident that you're ready to modify your files, go to Search > Find in Files, or press Ctrl + Shift + F

Text files prior to text replacement

When the Dialog box appears, simply specify the text that you want to replace, and the folder that you want to search in, and click Replace in Files.

After the replace runs, all the files within that folder should have the applicable text replaced.

Text files after text replacement