Can you set always open a new tab?

Answered

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?

22 comments
Comment actions Permalink

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.

0
Comment actions Permalink

If you go to Settings > Editor > Editor Tabs,  you can change nr. of open tabs and other tab behavior (placement, closing policy etc)

0
Comment actions Permalink

Where is the option in the newer intellij's?
This is driving me bonkers

2
Comment actions Permalink

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. 

0
Comment actions Permalink

Chris What specific option are you looking for? The files will open in new tabs by default.

0
Comment actions Permalink

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!

2
Comment actions Permalink

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.

5
Comment actions Permalink

That's the solution. Thanks!

0
Comment actions Permalink

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.

6
Comment actions Permalink

This seems to do the trick. Thank you for the quick response, Serge Baranov.

0
Comment actions Permalink

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...

9
Comment actions Permalink

Also, it goes against "ctrl" opening in a new tab in other contexts (like when browsing).

1
Comment actions Permalink

Thank you Serge Baranov  for note. 

 

0
Comment actions Permalink

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.

---

The Bug:
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):

  • ctrl+click opens every in new tab (not the preview)
  • ctrl+click on something inside the newly opened tab should open another (new) tab

 

  • click (once) on a file in the browser should open in the preview tab
  • click on another File in the browser should open this in the same preview tab

---
Also since the big update of PHPStorm (end of the year 2022) the IDE become very laggy!

0
Comment actions Permalink

Michitheonlyone

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.

2
Comment actions Permalink

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.

2
Comment actions Permalink

Thanks Serge. Preview Tab was the Culprit. Was really annoying, and started even to affect my productivity.

0
Comment actions Permalink

Thanks, Arina Efremova! Unchecking this option in registry worked for me in Pycharm 2023.1

0
Comment actions Permalink

This drove me crazy for 3 days. This is one of the most horrible "features" I've experienced in an IDE and should be off by default, especially for those of us who upgraded.

3

Please sign in to leave a comment.