Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 821
zwolin Avatar asked Jan 14 '15 11:01

zwolin


People also ask

How do I search for a directory in PhpStorm?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . PhpStorm places the highlighted string into the search field.

Where is PhpStorm config file?

To configure project settings, select PhpStorm | Preferences on macOS or File | Settings on Windows and Linux from the main menu. Alternatively, you can press Ctrl+Alt+S to show the IDE settings.


1 Answers

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/.

like image 174
LazyOne Avatar answered Oct 18 '22 12:10

LazyOne