简体   繁体   English

如何在phpstorm中找到具有函数的所有文件?

[英]How to find all files with a function in phpstorm?

How I can find and show all files in Phpstorm where this method 我怎样才能找到显示Phpstorm中所有文件的方法

$this->other_model->any_method()

is called? 叫做?

cmd+shift+f for Mac and ctrl+shift+f for Windows will find any piece of text throughout the project or directory. Mac的 cmd+shift+fWindows的 ctrl+shift+f将在整个项目或目录中找到任何文本。 Or you could use alt+f7 to find usages. 或者你可以使用alt+f7来查找用法。

PHPStorm Keyboard Mapping . PHPStorm键盘映射

Viewing Structure of a Source File . 查看源文件的结构

You can search for symbol with combination Ctrl+Shift+Alt+N . 您可以使用Ctrl+Shift+Alt+N组合搜索符号。 This combination allows you to search not only PHP classes/methods but also PHP variables, CSS classes etc. 这种组合不仅可以搜索PHP类/方法,还可以搜索PHP变量,CSS类等。

If you want to find method usages in files: click on your method and press Alt+F7 如果要在文件中查找方法用法:单击您的方法并按Alt+F7

If you want to search any composition of your desire search, you can use from searching everywhere . 如果您想搜索您想要搜索的任何组合,您可以在任何地方搜索 I prefer to use this because PhpStorm makes it possible to look for any item of the source code, databases, actions, elements of the user interface, etc. in a single action . 我更喜欢使用它,因为PhpStorm可以在一个动作中查找源代码,数据库,操作,用户界面元素等任何项目 to use that, only press search button in the right upper corner of phpStorm or 2 times press shift key on your keyboard. 使用它,只需按下phpStorm右上角的搜索按钮键盘上的2次Shift键 Now you can find your search everywhere. 现在,您可以随处找到您的搜索。 This is great functionality of phpStorm. 这是phpStorm的强大功能。 To read more information about using this search method, go to the following link: Searching Everywhere 要阅读有关使用此搜索方法的更多信息,请转到以下链接: 搜索所有位置

To See all the methods for search in phpStorm, Go to the following link: Searching Through the Source Code 要查看phpStorm中搜索的所有方法,请转到以下链接: 搜索源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM