Find "In Project" is unexpectedly including node_modules

Answered

Recently, files in node_modules have started appearing when doing a “Find in files…” with the “In Project” scope. I don't think this was the case before, and I'm not sure what changed. How can I make sure that node_modules are excluded from the “In Project” scope?

0
2 comments

Hello,

Here’s how to exclude node_modules from your "Find in files..." searches without diving into code:

  1. Open your project in the IDE.
  2. Navigate to the Project view.
  3. Right-click the node_modules folder and select Mark Directory as > Excluded. This ensures the directory is ignored in searches.
0

Sepehrnazari1 

First, make sure the node_modules folder is marked as excluded.

If it doesn't help, try enabling the following option in the IDE registry:

To get to the registry:

  1. Open Search Everywhere, type “registry” in the search bar
  2. Select the first hit from the top
  3. In the dialog that opens, start typing the name of the property to find it quickly
0

Please sign in to leave a comment.