Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove closed editor windows from Ctrl-Tab switcher?

Say I have the following files open in IntelliJ

Foo | Bar | CloseMe*

As you can see, CloseMe is currently open. If I close CloseMe, the editor switches to Bar and my tabs look like this:

Foo | Bar*

However, if I press Ctrl+Tab then CloseMe opens up again, instead of Foo as I would expect.

Foo | Bar | CloseMe*

Is there some way to remove closed files from the Switcher?

like image 357
Cory Klein Avatar asked Mar 25 '15 23:03

Cory Klein


People also ask

How do I get rid of split screen in IntelliJ?

To unsplit the screen, from the context menu, select Unsplit or Unsplit All to unsplit all the split frames.

How do I close all windows in IntelliJ?

I have mapped Shift+F4 on "Close all editors" action. With focus in editor or non-closable tool window (like Project tree) it works nice, closing all tabs in the main editor.

How do I open a closed tab in IntelliJ?

1 and when I want to reopen a recently closed tab (CMD + Shift + Tab - Chrome feature) it opens the closed file in the current tab.

How do I delete tabs in IntelliJ?

Press ⇧⌘A (macOS), or Ctrl+Shift+A (Windows/Linux), for the Find Actions dialog. From here you can search for Tab Placement, NBar and TBar to turn on or off the tabs, Navigation Bar and Toolbar windows.


1 Answers

This was annoying me beyond belief.

As far as I know, there is no way to change the functionality of Switcher (Ctrl+Tab) from inside of IntelliJ.

To solve this problem I recommend using TabSwitch plugin for IntelliJ. It cycles through open files only. After installing the plugin, assign the Ctrl+Tab keybind to Plug-ins -> TabSwitch -> Next tab and voilà, closed tabs don't interfere anymore.

On a side note, why would they change it that it would do identical thing with Recent Files (Ctrl+E)? I see no logic behind this change... It's such a stupid change that I believe it is a bug.

like image 73
Antimonit Avatar answered Nov 05 '22 04:11

Antimonit