WebStorm 2021.2 Help

Searching 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.

Refer to Search for a target within a file for more details about searching text within your project.

Search everywhere

Switch tabs
  1. From the main menu, select 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, see Excluding files and Configuring folders in a content root for details.

    • 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 scoped 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 cursor 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/Preferences dialog.

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/Preferences dialog opens.

Searching for actions and opening Settings/Preferences

If the action invokes a popup, this popup is shown instead of the Settings /Preferences 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 by a previously assigned abbreviation.

Searching by an abbreviation
  1. In the Settings/Preferences 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 item to which you've assigned this abbreviation. Press Enter to close the current editor tab.

Evaluate mathematical expressions

You can quickly type and evaluate simple mathematical 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().

Search Git

You can search for Git branches, commits, tags, messages, and so on.

  1. Press Shift twice to open the search window.

  2. Click the Git tab and enter your search query.

    The Git scope

    WebStorm displays the search results in the scope of Git.

Last modified: 14 October 2021