Is there a way to have "Navigate to Declaration" open a new tab instead of changing existing tab's content?

Answered

Is there a way to have "Navigate to Declaration" open a new tab instead of changing existing tab's content? Like right now if I click ⌘B while having a function highlighted it opens up its declaration in the same tab, replacing the previous tabs content. I don't want my current tab to ever change the content. I want to navigate using only tabs. Is this possible? The best I could come up with is ⌘Y and then clicking enter, but that's two steps instead of ⌘B. :(

Thanks!

10 comments

Navigate | Declaration opens a new tab if the declaration is in a different file. Having multiple file tabs open for the same file without splitting is not supported yet: https://youtrack.jetbrains.com/issue/IDEA-91238.

1

Ok so I tried it in IntelliJ Ultimate 2016.1 and you are right it opens a new tab, but in WebStorm 11.0.3 143.1559 it does not. I guess this is a new fix that will come to Webstorm? Maybe this is a Webstorm specific bug I should bring up in the Webstorm forums?

 

Thank you for your help.

 

0

I just downloaded Webstorm 2016.1 and tried it and it's still doing it, here's a video of it:

 

https://www.youtube.com/watch?v=fXACKMtRBfo

 

That's Webstorm 2016.1

0

Are you sure tabs limit is not exceeded?

0

My tab limit is set to 15 and I tried it with just one tab and it's the same behavior. It reuses the existing tab.

 

0

You know what, it's right there in the screenshot. "Navigation from non-modified tab will reuse it" I unchecked it and it worked as expected. Thanks!

1

Is possible to navigate to the declaration so it shows up in the split and the current stays still? 

0

Note that the original issue now has a dedicated button under "editor tabs" in Editor > General

 

0

Please sign in to leave a comment.