Search across multiple projects?

I am new to PhpStorm and have really enjoyed it.  I have been trying to figure out if there is a way to search for the occurence of a string across multiple projects without opening each project and searching?

I tried using "Find in Path" and specifing the root directory that contains all of my projects but it still only shows results from the project I am in.

1
6 comments

The referenced link above (Elena Pogorelova) does not relate to the title of this issue, which is about being able to search inside multiple projects.

One example: infrastructure as code is often separated into many parts (separate repos/projects) that can be reused across an organisation by multiple teams. Currently I work across 6 Git repos daily and often need to search across them (Intellij.)

At present I drop into grep or similar to search across these projects, but scanning through occurrences is much less convenient when you have to drop back into the IDE to continue editing.

0

Sadly you can't do that in IDE without opening all of the projects. IDE relies on it's own indexes for text search and these indexes are built only upon a project opening.

0

I have the exact requirement with Nick Mellor where I frequently need to search across 10+ projects at once. 

What I did is to move all those projects in the same folder and opened that folder in Webstorm as another project just for search purposes. 

Also created search scopes in Settings→Appearance&Behavior→Scopes for easily switching search scopes and avoid searching in build folders etc. 

This is working just fine and it's still very fast. 

PS: The great part about this is the parent folder project have it's own settings so I can configure it however I want without touching the individual project configuration. 
You can even do usage searches across all projects but I assume some path setup might be needed for that. Still experimenting with it.    

 

0

There is nice plugin Multiscope Radar that can do multiple search inside a workspace of projects :

https://plugins.jetbrains.com/plugin/26014-multiscope-coderadar

 

0

mohamed bouatira Hi, is it possible to search in the .php extension with your plugin ?

Best Regards

Aurelien

0

Please sign in to leave a comment.