php 如何在 PhpStorm 中搜索文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18372961/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to search a file in PhpStorm?
提问by HIRA THAKUR
Eclipse has this feature where you can search any file in your folder. Is there any such feature in PhpStorm?
Is there a shortcut for indentation and how can I customize that?
Eclipse 具有此功能,您可以在其中搜索文件夹中的任何文件。PhpStorm 中有这样的功能吗?
是否有缩进的快捷方式,我该如何自定义?
Googled it, but no results.
google了一下,没有结果。
回答by Shankar Damodaran
From the Menu of PHPStorm Choose Navigate-> Fileor use the shortcut ALT+SHIFT+Oor CMD+SHIFT+Oor CTRL+SHIFT+N(as per the edit). Type the required file name you want to search. Done.
从 PHPStorm 菜单中选择Navigate-> File或使用快捷键ALT+ SHIFT+O或CMD+ SHIFT+O或CTRL+ SHIFT+ N(根据编辑)。键入要搜索的所需文件名。完毕。
Screenshot for your understanding.
截图供您理解。
回答by MDT
In Phpstorm version 7.1.2you need to go to Navigate -> File...or press Ctrl+Shift+N
在Phpstorm 7.1.2 版中,您需要转到 Navigate -> File...或按Ctrl+ Shift+N
回答by Experimenter
Ctrl+Shift+N - search in whole project, that is minus. If you need to search in some specific folder, you can use the "File mask:"
Ctrl+Shift+N - 在整个项目中搜索,即减号。如果您需要在某个特定文件夹中搜索,您可以使用“文件掩码:”
Press Ctrl+Shift+N and in the right top corner you will have this field. Look at the screenshot.
按 Ctrl+Shift+N,您将在右上角看到此字段。看看截图。
回答by Mahad Ali
Another and easy way would be to press double Shift on Linux or Windows. It would open a search bar and from there select file. More over exact short cut can be found(as told above) by Nagivigation>Find.
另一种简单的方法是在 Linux 或 Windows 上按双 Shift。它会打开一个搜索栏,然后从那里选择文件。可以通过 Nagivigation>Find 找到更精确的捷径(如上所述)。
回答by Martin Lantzsch
On the main menu, choose Edit | Find | Find in Path, or press Ctrl+Shift+F(see http://www.jetbrains.com/phpstorm/webhelp/finding-and-replacing-text-in-project.html)
On the main menu, choose Code | Reformat Code, or press Ctrl+Alt+L(see http://www.jetbrains.com/phpstorm/webhelp/reformatting-source-code.html)
在主菜单上,选择编辑 | 查找 | 在 Path 中查找,或按Ctrl+Shift+F(参见http://www.jetbrains.com/phpstorm/webhelp/finding-and-replacing-text-in-project.html)
在主菜单上,选择代码 | 重新格式化代码,或按Ctrl+Alt+L(参见http://www.jetbrains.com/phpstorm/webhelp/reformatting-source-code.html)