Structural Search and Replace Dialogs
Use these dialog boxes to find and replace fragments of code that structurally match the suggested search template.
Use this text area to specify the template to be sought for. You can type the template code in the field or click the Existing Templates button to see a list of existing templates.
Use this text area to specify the template to be substituted. You can type the template code in the field or click the Existing Templates button to use one of the existing templates.
Click this button to open the Save Template dialog box, where you have to specify the name of the new template. Note that the new template is stored under the User Defined node of the existing templates tree view.
Click this link to add filters.
Click the icon to see the list of your previous searches.
Click this option to open the Existing Templates dialog, where you can select one of the pre-defined or custom templates. Selected template is displayed in the Preview field. Clicking OK in the Existing Templates dialog inserts the source code of the template into the Search template or Replace template field.
If this checkbox is selected, the search is performed recursively in the results.
If this check box is selected, the search discerns lower and upper case letters.
Select file type from the drop-down list.
Shorten fully qualified names
This option makes sense in case the template text contains fully qualified class names. If the checkbox is selected, PhpStorm automatically reduces these names in the template. Otherwise, fully qualified class names are used.
Check this option, if you want PhpStorm to automatically reformat the expanded code fragment according to your code style settings (for details, refer to the Code Style dialog box). If the option is not checked, PhpStorm will only indent the whole template according to the position in code at which it is expanded, leaving its formatting as is.
Use static import
Check this option, if you want PhpStorm to shorten any references to static elements in the replaced code. PhpStorm will insert a static import for those elements. The elements are then referenced by their short name. If there are no references to static elements in the replaced code, the option will be ignored.
Select one of the existing scopes from the drop-down list or click the ellipsis button (alternatively, press Shift+Enter), and create your own scope in the Scopes dialog box.
Open in new tab
If this checkbox is selected, the results of the new search display in a new tab in the Find results tool window. Otherwise, the search results update the existing tab.