Can you set always open a new tab? Follow
When I ctrl-click it reuses the tab. I actually never want my IDE to reuse a tab. In all cases imaginable I want it to open a new tab. I have not been able to find this setting. Is it possible?
Please sign in to leave a comment.
Nevermind. New tabs were being opened but they didn't fit in the bar so the old tab was being pushed off. It seemed like tabs were being reused but they really arent. My bad.
If you go to Settings > Editor > Editor Tabs, you can change nr. of open tabs and other tab behavior (placement, closing policy etc)
Where is the option in the newer intellij's?
This is driving me bonkers
Is this option no longer available. I'm using 2021.2.3 for Linux. There does not appear to be a way to always open new files in new tabs. I can have just one tab open and I want to view other classes in the same folder. I have to pin the tabs, an extra step I sometimes forget. It's also annoying when I'm getting ready to do work but just need to see the contents of files in a large code base.
Chris What specific option are you looking for? The files will open in new tabs by default.
I am having the same issue. When I open a new tab, it replaces my current tab, and I cannot find the option to change this. It's driving me insane!
If anyone is still facing this issue, I found the culprit. Checking this option causes new files to replace the current tab. I'm pretty sure this is a bug.
Yes, it's a bug: https://youtrack.jetbrains.com/issue/IDEA-255328.
Already fixed in https://www.jetbrains.com/idea/nextversion/.
That's the solution. Thanks!
This seems to be back in IntelliJ 2022.3. I'm using the new UI preview if that matters (switching to it caused some other options to reset as well, so it might have something to do with it).
Opening a new class, be it via F4 from another Window inside IntelliJ or from the class search, will open the class in the same tab. The option from Alexander Larsen's screenshot is switched off in my case, so I assume it is the bug resurfacing. I'd be glad to see the old behavior restored.
Please see https://blog.jetbrains.com/idea/2020/11/intellij-idea-2020-3-eap7/#preview_tab. Disable the Preview Tab option.
This seems to do the trick. Thank you for the quick response, Serge Baranov.
Thanks, Serge Baranov
This was a really irritating feature to have implemented automatically. I pretty much always want a new tab to be opened when I ctrl/cmd click something...
Also, it goes against "ctrl" opening in a new tab in other contexts (like when browsing).
Thank you Serge Baranov for note.
The Bug is Back again in Version 2022.3.2 the solution to disable the preview tab is not a good solution as it always opens every file i click what causes a big mess with my tabs! it worked perfectly in older PHPStorm versions back in 2022.
ctrl+click opens everything in the same (preview) tab. The option (open declaration source in the same tab) in "settings > advanced options" has no effect at all.
Expected result (what worked):
Also since the big update of PHPStorm (end of the year 2022) the IDE become very laggy!
As it says in IDEA-304419, the new behavior is intentional. It can be turned off using the registry key
editor.preview.tab.navigation(Shift-Shift -> "registry").
We also plan to redesign the settings related to preview tab in version 2023.1 to make the available configuration options more clear.
Enable Preview Tab was the problem in my case. What an horrible feature, why would someone want this enabled by default. I don't want to ever replace my existing tab while coding.
Thanks Serge. Preview Tab was the Culprit. Was really annoying, and started even to affect my productivity.