Improve goto declaration usability

I have a  wide screen monitor and I am editing two file simultaneously  by right-clicking on the file and press split-vertically.
It would be nice that when I goto declaration on some function with ctrl-clickand , instead for jumping the current navigation window, the underlying declaration is open on the
editing tab next to me , so I dont need to manually right click to move the current file other group every time I go to new declaration, in other to view the caller and the implementation simultaneously
Is it something already done, or have some configuration in the setting would do the trick?
Thanks.

6 comments
Comment actions Permalink

Have you tried to record a macro (Tools | Start Macro Recording) for this?

0
Comment actions Permalink

no, in my understand of macro, its kind of batch job of your action.
But the suitation is different from batch action, here is the logic I want IDEA team to implement

concurrent navigation mode Off:
open declaration -> open declaration in same editing window

concurrent navigation mode on:
open declaration ->
   if implementation on same file -> open declaration in same editing window
   if implementation not on same file,
       if have second editing window opened -> open declaration in second window
       if don't have second editing window opened -> open declaration in same window



this kind of logic is far from macro capability

currently I had easier life by using shortcut on movetoOtherGroup, but I would be glad if IDEA team can save me the shortcut too
0
Comment actions Permalink

I mean you can make a macro for "open declaration; then move window to second group; then switch back" actions. But anyway. For such a question It is better to file a feature request in a tracker.

0
Comment actions Permalink

I'm not sure I like what you're proposing. Navigating down through layers
of methods (something I do a lot) would result in alternating back and forth
between split-panes, which I suspect would be quite jarring. I'd rather it
opened the file in the same split-pane, unless the file was already open
in the other split-pane in which case it would then move the focus over to
that. But even that seems potentially more confusing than the current behaviour.

no, in my understand of macro, its kind of batch job of your action.
But the suitation is different from batch action, here is the logic I
want IDEA team to implement

concurrent navigation mode Off:
open declaration -> open declaration in same editing window
concurrent navigation mode on:
open declaration ->
if implementation on same file -> open declaration in same editing
window
if implementation not on same file,
if have second editing window opened -> open declaration in
second window
if don't have second editing window opened -> open declaration
in same window
this kind of logic is far from macro capability

currently I had easier life by using shortcut on movetoOtherGroup, but
I would be glad if IDEA team can save me the shortcut too



0
Comment actions Permalink

Although the focus will move to the new file, but if I don't need to edit the new file I can just quickly switch back to last file by pressing editing position shortcut, notice that in this case the  first split pane is keep sticking to foreground without jumping back and forth with is quite annoying now.

0

Please sign in to leave a comment.