Confirm file in Ctrl+Tab Switcher
I had IntelliJ CE on my previous work computer and used the Switcher (activated by Ctrl+Tab) to switch between files/tabs in the editor. Hit Ctrl and Tab, then use Tab to move around in the list, and then releasing the Ctrl to jump to that file.
Now I have use the most recent IntelliJ Ultimate and the Switcher behavior is quite different. The Switcher is just activated by Ctrl+Tab and is then sticky. I actually cannot switch to a file using any keyboard input. I can move around in the list but hitting Enter or Ctrl or similar doesn't jump to that file. Only way to get rid of it is to use the mouse. Not even Esc works... That really sucks.
Is there another way one is supposed to use to quickly "tab" between open files? I use Vim Emulator plugin and can of course use that or Alt+<arrows> to move around but I would prefer the Switcher...
Please sign in to leave a comment.
Ph, I tried reproducing this in 2021.1, sadly no luck. For me Switcher works exactly the same as it did in 2020.3.3, installing Idea Vim did not change anything.
What Vim Emulator plugin you are using? Does disabling this plugin make any difference?
You can use the Recent files popup (Ctrl+E on Win, Cmd+E on Mac) that allows navigating between files you've recently opened.
There's also a source code navigation that allows you to switch between recently visited locations with Ctrl+Alt+Left/Right on Win or Cmd+[/] on Mac, see this article for more details.
Tried to disable IdeaVim (sorry, wrote Vim Emulator in my initial post), without success. IdeaVim version is 0.66.
Consider wiping my settings which I somewhat assume would get everything back working but then I would need to figure out and redo all my customizations done over the last years.
I just realized what is causing the problem. I run IntelliJ on a Linux desktop with Gnome and have configured Caps Lock as a secondary Ctrl-button. Seems like some stickyness (CapsLock being a toggle) still applies when within IntelliJ. If I use the real Ctrl button, it works fine. Need to do something about my key remaps...
Thanks for the update.
This is a known issue, please upvote and watch IDEA-202334. See this article if you are not familiar with YouTrack.
Not sure if I'd like to upvote it. Problem can be solved by just combining CapsLock swapping and disabling of CapsLock:
setxkbmap -option ctrl:nocaps,caps:ctrl_modifier
With above options set, the Ctrl-Tab works just fine in IntelliJ and the Ctrl in CapsLock position works as intended in all other use cases :)