intellij-ideaideintellij-13

How to search only through selected files/folders in IntelliJ?


I'm coming from eclipse and one of my most used feature is to select fiels/folders in the navigator and then execute a search on those (clicking Ctrl+H => only the selected files/folders are searched recursivly).
Pressing Ctrl+Shift+F in IntelliJ only selects the parent folder or the first folder.
How can I search through my selection in IntelliJ?


Solution

  • You can switch to the Scope tab and select Selected directories/Selected files from the list. E.g., enter image description here

    Here is a related request https://youtrack.jetbrains.com/issue/IDEA-92340 to make this feature work better. Feel free to upvote/comment.