Phil Tune
Phil Tune

Reputation: 3363

PhpStorm quickly jump to file usage references similar to Laravel Idea

In PhpStorm with the Laravel Idea plugin, at the top of a *.blade.php file you can quickly find all references to this file:

before click after click

How did they do that? I have a bunch of .conf files that I'm programmatically doing string replacements on. But they are not easy to back-reference. If I'm editing a file /resources/path/to/abc-settings.conf, I'd like to easily know what is referencing that file.

Currently, my only solution, of course, is to Find in Files all references to "/resources/path/to/abc-settings.conf". Though maybe the reference is a relative path: file_get_contents('../abc-settings.conf') so that won't work. Or maybe there is also a /different/path/to/abc-settings.conf file so I don't want references to that.

I'm using base_path(...) in order to take advantage of autosuggestions and cmd+clicking into the referenced files. I just want me and my team to be able to jump back the other direction. Help!

Upvotes: -1

Views: 13

Answers (0)

Related Questions