Show the list of used variables?
Hi! Sorry if this is a stupid question. In all PHP IDEs I've tried out there is a Code Explorer which lists functions, constants, variables etc.
I assume that the equivalent for "Code Explorer" in PhpStorm is the "Structure" tool panel? However the "Structure" panel in PhpStorm only lists includes, constants and functions.
So how can I show a list of used variables from the file?
请先登录再写评论。
Hi there,
Class variables / properties as well.
As of v6 (I believe) the Structure panel is no longer showing ordinary variables (it was showing globals vars only).
I do not think it's possible to bring it back -- I don't remember seeing any option for that.
Is there a reason why they decided to not show "ordinary variables" anymore?
1) I was wrong -- this was introduced in v5
2) http://youtrack.jetbrains.com/issue/WI-10511#comment=27-345831 (maybe somewhere in another comment it is described better in details but I have not found it)
As I understand (and I personally agree):
P.S.
If you just need to navigate to some variable .. you could use "Navigate | Symbol" (although it works across all files in a project and not just current file).
Why not let the user have a CHOICE himself? I love doing things where I decide what is being displayed an what kind of environment I want to use.
Everything else smells of "communism" ... ;-)
Issue Tracker is located here: http://youtrack.jetbrains.com/issues/WI