Allow to search for "AssetCon@show" to directly jump into method

A long-waiting feature for me is to combine existing search capabilities using camel case to find classes together with "@method" to directly jump into a method definition. Similar to jumping onto a certain line with ":123". What do you think?

0
7 comments

We have a similar feature request on our tracker: https://youtrack.jetbrains.com/issue/IDEA-264605. You can share your thoughts there.

But I'd still suggest using Navigate > Class or rather Navigate > Symbol instead.

0

Sorry, but I dont feel my proposal is reflected in this issue because my request is more simple than that. You really often have to lookup for a specific method within a certain class. Looking via Symbol allows to me search for a common method name like "show" in my case. Since I have many classes with that name I often want to specify both, the class name from "Navigate > Class" and the symbol name from "Navigate > Symbol". I think this kind of search would be very powerful and often used.

The related ticket proposes to ignore a module name which is something else I think.

Thanks for reconsidering.

0

I see, thank for the clarification. It would be great if you could submit a separate request then. Link to our tracker: https://youtrack.jetbrains.com/newIssue 

0

@Patrick Thomas

Side note: do you know that you can use Class#method syntax in the "Navigate | Class" popup? AssetCon#show as per your example.

P.S. It requires the exact method name though... and sometimes does not jump straight to the method if that file has not been opened in the current session yet...

0

Andriy Bazanov

Thanks for that, but not even specifying the full method name leads me to the desired location. And: The power would be to NOT specify the full Class and/or method name, right?

0

Class name can be partial (since it's a "search for class" popup) but the method part AFAIK has to be exact (or it may just go the first/best match: since it does not display matches for you / does not offer the completion for them there).

Related tickets / see comments and browse related there:

1

Yeah, right.

These two already adressing my wish. Unfortunately they are years old and so I cannot expect that to get in near future :-(

0

Please sign in to leave a comment.