Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm/PhpStorm exclude file from search everywhere

When I search everywhere I would like to exclude JS and js.map files from the search results. ( I am using TypeScript ). My expected behaviour is to have these files omitted from Search Everywhere.

Yes, I can mark the files as plain text, but that's cumbersome on a per file basis.

I have used scopes: enter image description here

I have researched these links:

  • PHPStorm exclude files by mask from indexing
  • How to exclude file from PhpStorm global search (Ctrl+Shift+F)

What am I missing? Can this be done?

like image 337
Simon Avatar asked May 14 '16 04:05

Simon


People also ask

How to exclude a file from a project in PhpStorm?

Sometimes you might need to exclude a single file from your project, so that it will be ignored by inspections, code completion, and so on. This is done using the Override File Type action. When a file is marked as plain text, PhpStorm does not use it anymore for code completion and navigation.

How to search for excluded files and directories in WebStorm?

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.

How do I use the PhpStorm search tool?

PhpStorm lists all of the found results where your query is found. Press Ctrl+Down to jump to the bottom of the list for more... items or Ctrl+Up to return to the top of the search results. Click to list the search results in the Find tool window. Press Tab to switch the scope of your search to classes, files, symbols, or actions.

How do I search for a specific tab in WebStorm?

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:


1 Answers

You can exclude particular directory from your project. Go:

Settings > Directories

after that select desired directory and press "Excluded" button.

enter image description here

like image 85
cn007b Avatar answered Oct 30 '22 22:10

cn007b