How to keep current tab from closing while navigating to other classes using shortcut Ctrl+B or Ctrl+Alt+B?

已回答

While navigating using shortcut Ctrl+B or Ctrl+Alt+B between different Java files, current tab is getting closed and new file is opened. 

Is there any way to keep all the tabs open when we navigate through series of files using those shortcuts? Please help.

0
How many tabs are opening? There's a `Tab limit` in Preferences/Settings | Editor | General | Editor Tabs. Please try increasing the limit number.

Also, please keep the `Preferences | Advanced Settings | Editor Tabs | When navigating to a file...` option checked.
1

Thanks Ethan Yin for responding. I haven't reached Tab Limit (10). 

Also, checked the option "When navigating to a file...". But, still the tab closes. If we use Ctrl + Alt + Left Arrow, the closed tabs are coming back.

0
Does it help if you uncheck the `Enable preview tab` from the project window options menu(click the three dots from the project window)?
2

It helped (PHPStorm 2023.1.3) to uncheck Enable Preview Tab

Settings -> Editor -> General -> Editor Tabs -> Enable preview tab (uncheck) and Change Tab limit to 100 (from 10).

1

Unfortunately it does not work on my side. I tried those settings but when navigating with Ctrl+B or Ctrl+Alt+B or even with Ctrl + Left Mouse click, it closes the file I was looking at and opening the other file instead.

The same happens when using Goto Class or Go to File. I've opened a class or a File with Ctrl + N or Ctrl + Shift + N, the file/class opens. But as soon as I do it again, instead of opening another tab, it closes the one I opened just seconds before. 

I has nothing to do with the tab limit, because it happens also when I have only one tab open. It has nothing to do with the Preview Tab setting, because no matter if I check or uncheck this setting, it shows the same behaviour. 

 

0

请先登录再写评论。