Search code examples
phpphpstormwebstorm

Exclude folder from search but not from the project list


I have a few different project with the same core.

All I need is to mark all not current projects as excluded to avoid searching through them (simple search, shift + cmd + n etc.)

In other words I want to have a search results from the core + current project.

Is there are any way do close some projects but have them available in the projects list and open it so easy as it was closed? Or probably you have another experience?

enter image description here


Solution

  • To apply custom search use Scopes Settings/Preferences > Appearance & Behavior > Scopes to use it for Find in Path or Replace in Path.
    I suggest to reorganize your folders, so that no unnecessary files are left in project directory. Also, you can specify Source Root by going to Settings > Project Settings > Directories and adding additional directories.