Navigate Symbol just in the current file?

I'm about to enter a suggestion on the tracker, but I'm not sure if I'm just missing pre-existing functionality.

I want to be able to navigate to just symbols in the current file I'm in, rather than all symbols in the project in one big list.  It just adds tons of clutter and makes it harder to find what you're looking for, especially when the same symbol exists in lots of tiles.  Llike typing "get" to see all the getters in the current file, but instead you get everything starting with "get" everywhere - not so helpful.

Is there already some setting for this, or a separate popup that can do this?

5 comments
Comment actions Permalink

Hi Jason,

I saw request for the same functionality ( http://youtrack.jetbrains.net/issue/IDEA-79058?projectKey=IDEA ; http://youtrack.jetbrains.net/issue/IDEA-77737?projectKey=IDEA ). The answer was Navigate | File Structure

0
Comment actions Permalink

Very cool!  Thanks for the speedy quick response.  Glad I posted here first.  :)

0
Comment actions Permalink

Actually, it looks like this isn't what I really needed.  :(

Well, it could be, with a modification.  The problem is that I might have several objects in a file.  If I'm in the middle of the code for one and bring up the file structure, it only shows me the symbols inside of that class.  If I want to quickly jump to a function inside another object in the file, I have to hit the [..] up to find the right object, then drill down to the object I want, then type the function.

All that makes it much slower than bringing up the find dialog and typing the function name and finding it through that mechanism.  So far I haven't found any way to make the file structure window do what I want, though.  What I'm looking for is a switch that says "search across all symbols in file" or something.  What I'd want even more would be one where I could include inner functions and such.  I wonder if anyone has suggested this?

0
Comment actions Permalink

Well ... accordingly to this ticket ( http://youtrack.jetbrains.net/issue/IDEA-65527?projectKey=IDEA&query=file+structure ) it was fixed in 111.240 build, but it is not the case for PhpStorm v3.0.2 (which is 111.296) -- see my comment there.

In any case -- I was told that this popup was re-worked and in next version (v4) it will be much more easier to use. If you want to see how it will look (I have not seen it yet), just download IntelliJ IDEA 11.1 EAP build now  .. or wait for first PhpStorm v4 EAP build (I expecting it within 2 weeks or so -- my own speculations).

0
Comment actions Permalink

Once again, thanks for your speedy and helpful response.  Thanks also for doing the legwork on the YouTrack searching (I'll REALLY be glad when they add that search-in-summary feature that's hotly requested).

Good news on the v4 front.  I continue to be impressed with what a great product WebStorm is and how much they add features the community requests.  It's something I can wait until WS v4 EAP for, but I'm just glad to know it's somewhere around the corner.

0

Please sign in to leave a comment.