WebStorm 2024.1 Help

Search for a target by name (Search everywhere)

You can find any item in the project or outside of it by its name. You can search for files, actions, classes, symbols, settings, UI elements, and anything in Git from a single entry point.

Check the following video for a quick look on how to use this feature:

For more information about searching text within your project, refer to Search for a target within a file.

Search everywhere

Switch tabs
  1. Go to Navigate | Search Everywhere or press Shift twice to open the search window with the All, Classes, Files, Symbols, and Actions tabs.

    By default, the All tab opens and WebStorm displays the list of recent files. To open the tab you need, use the following shortcuts:

    • File or folder - Ctrl+Shift+N, CamelCase and snake_case are supported.

      Note that WebStorm does not search for excluded files and directories. For more information, refer to Excluding files and Configuring folders in a content root.

    • Class - Ctrl+N.

    • Symbol - Ctrl+Alt+Shift+N.

    • Action - Ctrl+Shift+A. You can find any action even if it doesn't have a mapped shortcut or appear in the menu. For example, Emacs actions, such as kill rings, sticky selection, or hungry backspace.

  2. Start typing your query. WebStorm lists the results grouped by scopes where your query is found. Press Ctrl+Up or Ctrl+Down to jump between sections.

    Click the Pin icon to list the search results in the Find tool window.

  3. Press Tab to switch the scope of your search to classes, files, symbols, or actions.

    When the Files scope is selected, WebStorm shows only matching project files. To show matching libraries and files from other projects, select the Include non-project items checkbox or again press Shift twice.

  4. To narrow down your search, click the Filter icon Filter on the window toolbar and select the appropriate option.

    For example, you can have only recently opened files shown.

    Narrow your search using filters
  5. To see the results of your search in the Find tool window, click the Open in Find tool window icon the Open in Find tool window icon on the window toolbar. This icon is disabled when you search in the Actions scope.

Search for files and folders

Searching for a file by name
  1. Press Ctrl+Shift+N and start typing your query, CamelCase and snake_case are supported. The list shrinks as you type.

  2. Select the file or folder you need and press Enter. If you selected a file, WebStorm opens it in a new editor tab. If you are searching for a folder, WebStorm opens the Project tool window with the caret at the selected folder.

Search for commands

You can search for commands that control the settings related to appearance and behavior of WebStorm. For commands, you can turn the corresponding settings on and off straight from the search window. For actions WebStorm gives you quick access to the Settings.

Searching for commands
  1. Press Shift twice to open the search window and type /. WebStorm lists the available groups of settings.

  2. Select the relevant group of settings and press Enter. WebStorm shows the available commands related to the selected group.

  3. To toggle the status of a setting, select it in the list and press Enter.

Search for actions

WebStorm lets you search for actions and run some of them straight from the search window.

Searching for actions

For actions that control WebStorm settings, the corresponding page in the Settings opens.

Searching for actions and opening Settings

If the action invokes a popup, this popup is shown instead of the Settings dialog.

Searching for actions and opening a popup
  • Press Ctrl+Shift+A to open the Actions tab. Start typing the name of the action to find, then select the required action and press Enter. WebStorm either runs the selected action or opens the page with the corresponding settings.

  • Alternatively, press Shift twice to open the search window and switch to the Actions tab or just start typing the action name and select the action in the Actions group.

Search for abbreviations

With WebStorm, you can assign an alias to an action and then use this alias to find and quickly access the action. The example below shows how you can find and invoke the Close Active Editor action with a custom abbreviation.

Searching by an abbreviation
  1. In the Settings dialog (Ctrl+Alt+S) , go to Keymap. In the right-hand pane, select Other | Close Active Editor, and then select Add abbreviation from the context menu. In the dialog that opens, specify the abbreviation you are going to use, for example, cae, and click OK.

  2. Press Shift twice to open the search window, select the All scope, and type cae in the search field. WebStorm shows the Close Active Editor action to which you've assigned this abbreviation. Press Enter to invoke the action and close the current editor tab.

Evaluate mathematical expressions

You can quickly type and evaluate simple mathematical expressions. WebStorm also supports HEX, binary, and octal expressions.

  1. Press Shift twice to open the search window.

  2. Enter an expression you want to evaluate, WebStorm will display the answer in the search results.

    Evaluate expression

    You can use basic arithmetic operators — +, -, *, /, as well as ^ for power — and basic math functions: sqrt(), sin(), cos(), tan().

The text search is available by default within the Text tab. Within this tab, you can search for text queries, matching words, including case-sensitive scopes, and regex.

The text search results are also available on the All tab at the bottom of the list. They are displayed when there are few or no other search results available for a given query. You can disable the text search at any time through Advanced Settings.

  1. Press Ctrl+Alt+S to open settings and then select Advanced Settings.

  2. Scroll down to the Search Everywhere section and disable Show text search results in Search Everywhere.

  3. Apply the changes and close the dialog.

Manage tabs for Search Everywhere

You can add more tabs to the Search Everywhere window or disable them through Advanced Settings.

For example, you can enable the Git tab to search for Git branches or commits.

  1. Press Ctrl+Alt+S to open settings and then select Advanced Settings.

  2. On the Advanced Settings page, in the search field, start typing Search Everywhere to see options and tabs that are available.

    Advanced Settings: Search Everywhere
  3. Select the appropriate option and click OK to save the changes.

Last modified: 01 July 2024