zwolin
zwolin

Reputation: 994

Is there a way to search for folder (directory) in PhpStorm?

I can press Ctrl + Shift + F in PhpStorm, and I will get a window with search options. I can search for particular string in all project files, I can leave "Text to find" field empty and put name of the file I'm looking for in "File mask(s)" field to find a particular file, but is there a way to find a folder by its name?

Upvotes: 23

Views: 22329

Answers (2)

Serhan C.
Serhan C.

Reputation: 1298

File or Folder right click > Mark Directory as > Excluded

Only blue directories will be searched

Only blue directories will be searched

Upvotes: 0

LazyOne
LazyOne

Reputation: 165148

In Find in Path dialog (Ctrl + Shift + F) -- No.

But you can use Navigate | File... for that (Ctrl + Shift + N on Windows/Linux using Default keymap)

enter image description here

The key is to use path separator / to denote that the previous part was a folder.

Same as actual search for file name: the directory name can be partial: phpd/ will match phpdoc/ if that the only folder. Similar with capital letters: mff/ will match MyFavouriteFolder/.

Upvotes: 50

Related Questions