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!

5
14 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
Avatar
Dansereauvincent

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

0

Hello,

Please vote for the related request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-108556

 

2

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

 

1

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206569349/comments/360000225180 I don't see this option in PHPStorm version 2022.3. This behaviour is automatically set to open in the same tab, disregarding the tab limit value. Pretty annoying, especially since it wasn't used to be like that.

1

Option located in Advanced Settings, but this option don't work. Very annoying to work

0

Serge Baranov Thank you!!! Disabling the preview tab helped

1

Please sign in to leave a comment.