Finding and replacing text in a file
You can search for a text string in a currently opened file in the editor. Using different options, you can narrow your search process, use regular expressions in your search, and manage your search results.
Open your file in the editor.
From the main menu, select(Ctrl+F).
In the search field that opens, enter your search string. PhpStorm highlights the results of your search in the file.
Manage your search
PhpStorm lets you adjust your search process and perform various actions with the displayed search results.
If you want to see the list of previous searches, press Alt+Down in the search field.
If you want to enter a multi-line string, click the icon in the search field for a new line.
Use the and arrows to navigate to the previous or the next occurrence.
Work with the list of occurrences (Alt+F7) in the Find tool window, where you have other options, for example, to group your results or to open them in a separate window.
Click the or icon to add a selection of the next occurrence or deselect the previous occurrence (Alt+J or Shift+Alt+J).
If you want to quickly replace the target of your search in the whole file, press Ctrl+Shift+Alt+J and type a new string.
You can narrow your search when you select the Words, Match case checkboxes on the search pane, or click the filter icon to select a scope for your search.
Press Ctrl+F7 to see usages of any element in the opened file.
If you don't want PhpStorm to highlight all found usages in the file, open the Settings / Preferences dialog (Ctrl+Alt+S) and on the page clear the Highlight usages of element at caret option.
Press Alt+F7 to search for usages beyond the current file or Ctrl+Alt+F7 to open the search results in a separate popup. If you need to configure some options before the search, press Ctrl+Shift+Alt+F7 to open the Find Usages dialog.