Various

Search text string in all files and folders with Notepad++

One of the many useful abilities of Notepad++, is to search for a text string in all files in a folder – including sub and hidden folders – and even to replace this text.

To do so, open the Search menu => Find in Files, press CTRL + SHIFT + F, or go to Search with CTRL + F and open the Find in Files tab.

Search text string in all files and folders with Notepad++ : Menu Search => Find in Files...
Menu Search => Find in Files…

Once there, enter your search string (for example 8080) in the Find what field. Then, click on the button at the right side of the Directory field.

Search text string in all files and folders with Notepad++ : Open directory browsing
Open directory browsing

Select the directory in which you’d like to search.

Search text string in all files and folders with Notepad++ : Select directory to search
Select directory to search

Enter your search options. On top of the standard Notepad++ search options, you might want to check the In all sub-folders and / or In hidden folders options, to make sure the search is applied at a larger scale.

Click on Find All once you have set up your search criteria

Search text string in all files and folders with Notepad++ : Find in files options
Find in files options

You will be returned the list of results : how many results in how many files, and, for each file matching your search criteria, the file location, and the line number of each result.

Search text string in all files and folders with Notepad++ : Search in files result
Search in files result

Double click on the filename to show / hide the detail, and double click on the line result to open the file, showing the result line with search highlighted.

Search text string in all files and folders with Notepad++ : Search result opened and highlighted
Search result opened and highlighted