Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Listing php functions at the top of the file? (or, how to quickly jump to php functions?)

Tags:

php

phpstorm

The php editor I use jumps to functions when I middle click their names, so I was thinking that it would be awesome if I could list all of the functions at the top of a file so that when I open the file I can quickly jump to the one I'm interested in. Of course, if I put the function names at the top of the file, then they will all be called when the file is loaded (actually, this is a class I'm talking about).

Is there any way to do this, or am I just dreaming? :-)

like image 634
Nate Avatar asked Oct 11 '12 23:10

Nate


1 Answers

If all functions are inside the same file where you are -- just use Structure panel (Alt + 7).

Alternatively use Navigate | File Structure (Ctrl + F12) which is quite similar to Structure panel (some people find this more convenient (more keyboard oriented) + it can list more elements depending on language etc).

Otherwise -- see an answer from @Eric -- Navigate | Symbol... (Ctrl + Alt + Shift + N)

like image 159
LazyOne Avatar answered Sep 21 '22 23:09

LazyOne