How to limit sources for 'Navigating to Declaration' in PHPStorm?

Hi all,

I use PHPStorm heavily for JS development and when I need to navigate to declaration of a variable lets, when I click on variable name I see the list of all declarations in global space, including all other files in this project. What I want to learn is, is there anyway to set in PHPStorm the files which will be searched for those declarations or not? My project is big and almost in 10 different files there are different definitions of the same object property named 'cache' but I want to search it only in the current open file that I'm working on. See my screenshot please
Screen Shot 2015-07-30 at 15.34.41.PNG

Thanks for the replies.

1 comment
Comment actions Permalink

Hi there,

but I want to search it only in the current open file that I'm working on

Try "Navigate | File Structure" (Ctrl+F12).

It's not the same .. but you can quickly search here for symbols/methods in current file only.

0

Please sign in to leave a comment.