
If you have a directory or a file that you excluded from your project, PhpStorm will not include it in the search process.Ĭtrl+Shift+A: finds an action by name. You can use the following shortcuts to open the search window with the needed scope right from the start:Ĭtrl+Shift+N: finds any file or directory by name (supports CamelCase and snake_case). Press Tab to switch the scope of your search to classes, files, symbols, or actions. items or Ctrl+Up to return to the top of the search results.Ĭlick to list the search results in the Find tool window. Press Ctrl+Down to jump to the bottom of the list for more. PhpStorm lists all of the found results where your query is found. For example, typing toggle presentation mode to search for the presentation mode action will display Enter Presentation Mode in results. Pressing double Shift again or Alt+N for mnemonics will select the Include non-project items checkbox and the list of search results will extend to non-project related items. By default, PhpStorm displays the list of recent files. Search everywhereįrom the main menu, select Navigate | Search Everywhere or press Shift twice to open the search window. Refer to Find and replace text in a file for more details about searching text within your project.

You can search for files, actions, classes, symbols, settings, UI elements, and anything in Git from a single entry point. In the bottom field, enter your replacement string.Ĭlick one of the available Replace commands.You can find any item in the project or outside of it by its name. In the top field, enter your search string. Press Ctrl+Shift+R to open the Replace in Path dialog. If necessary, specify several file types separating them with commas. You can manually add a file mask in the search field. If you don't find the file type you need in the list, enter your file type in the File Mask field.įor example, use the following syntax to search only in json files: *.json. WebStorm limits its search to the specified type. In the Find in Files dialog, select the File Mask checkbox and from the list of file types, select the one you need. You can select the existing file type from the list, add a new file type, or add an additional file mask syntax to search for file types with certain patterns. Use the File Mask option to narrow your search to a specific file type. You can also create your own custom scope, click the Browse icon ( ) to open the Scopes dialog. If you work without tabs, the scope Recently Viewed Files or Recently Changed Files option might become quite useful. For example, you can limit your search to the scratch files in your project. Moreover, you can select the Scope option that offers you a list of predefined scopes for your search. Select Directory to limit your search to a specific folder. For example, you can filter the search to omit comments or search only in comments instead. Keep in mind that if you copy ( Ctrl+C) the string first and then paste ( Ctrl+V) it in the search field, the regex symbols will not be taken into account.įor more details on regex, refer to the search with regex documentation.Ĭlick the icon to filter your search. With selected, WebStorm automatically escapes special regex symbols with backslash \ when you search for a text string that contains them. Select options such as Words ( ) or Match case ( ) to find the exact word in a project or match the letter case. You can use different options in the Find in Files dialog to adjust your search process. If you want to see each new search result in a separate tab in the Find tool window, click on the bottom of the Find in Files dialog and select the Open Results in New Tab checkbox. Use this window and its options to group the results, preview them, and work with them further.

To see the list of occurrences in a separate tool window, click Open in Find Window.


To do a multi-line search, click the icon to enter a new line, and press Ctrl+Alt+Down/ Ctrl+Alt+Up to browse through occurrences.Ĭheck the results in the preview area of the dialog where you can replace the search string or select another string, press Ctrl+Shift+F again and start a new search. If the search string is found several times on the same line of code, WebStorm merges the results in one line. WebStorm lists the search strings and the files that contain them. If you need, specify the additional options. To see a list of your previous searches, press Alt+Down. WebStorm places the highlighted string into the search field. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F. In the search field, type your search string. Press Ctrl+Shift+F or select Edit | Find | Find in Files from the main menu. You can search for text strings within a project and narrow your search by using different scopes and excluding certain items.
