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!
Please sign in to leave a comment.
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.
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.
Please try WebStorm 2016.1: http://www.jetbrains.com/webstorm/download/index.html.
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
Are you sure tabs limit is not exceeded?
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.
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!
Is possible to navigate to the declaration so it shows up in the split and the current stays still?
Hello,
Please vote for the related request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-108556
Note that the original issue now has a dedicated button under "editor tabs" in Editor > General
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.
Option located in Advanced Settings, but this option don't work. Very annoying to work
Please see https://blog.jetbrains.com/idea/2020/11/intellij-idea-2020-3-eap7/#preview_tab.
Serge Baranov Thank you!!! Disabling the preview tab helped