有没有一种方法可以在PhpStorm中搜索文件夹(目录)? [英] Is there a way to search for folder (directory) in PhpStorm?
问题描述
我可以在PhpStorm中按 Ctrl + Shift + F ,然后会出现一个带有搜索选项的窗口.我可以在所有项目文件中搜索特定的字符串,可以将要查找的文本"字段保留为空,并在文件掩码"字段中输入要查找的文件的名称,以查找特定的文件.一种通过文件夹名称查找文件夹的方法?
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?
推荐答案
在Find in Path
对话框中( Ctrl + Shift + F )-否
但是您可以为此使用Navigate | File...
(在Windows/Linux上,使用默认键映射为 Ctrl + Shift + N )
But you can use Navigate | File...
for that (Ctrl + Shift + N on Windows/Linux using Default keymap)
关键是,使用路径分隔符/
表示前一部分是文件夹.
The key is to use path separator /
to denote that the previous part was a folder.
与实际搜索文件名相同:目录名称可以是部分名称:phpd/
将匹配phpdoc/
(如果唯一的文件夹).与大写字母相似:mff/
将匹配MyFavouriteFolder/
.
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/
.
这篇关于有没有一种方法可以在PhpStorm中搜索文件夹(目录)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!