Joss
Joss

Reputation: 113

How to find all files with a function in phpstorm?

How I can find and show all files in Phpstorm where this method

$this->other_model->any_method()

is called?

Upvotes: 11

Views: 14701

Answers (3)

Mehdi Soltani
Mehdi Soltani

Reputation: 173

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. to use that, only press search button in the right upper corner of phpStorm or 2 times press shift key on your keyboard. Now you can find your search everywhere. This is great functionality of 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

Upvotes: 1

kRiZ
kRiZ

Reputation: 2316

cmd+shift+f for Mac and ctrl+shift+f for Windows will find any piece of text throughout the project or directory. Or you could use alt+f7 to find usages.

PHPStorm Keyboard Mapping.

Viewing Structure of a Source File.

Upvotes: 26

zergussino
zergussino

Reputation: 821

You can search for symbol with combination Ctrl+Shift+Alt+N. This combination allows you to search not only PHP classes/methods but also PHP variables, CSS classes etc.

If you want to find method usages in files: click on your method and press Alt+F7

Upvotes: 3

Related Questions