Switcher off by one
已回答
Since a recent update switcher behaves in an unexpected manner. When pressing ctrl + tab i expect the previously viewed file to be selected, instead the it's the next previous file that's selected. Example: I switch from User.java to Service.java to ServiceTest.java. Now i press ctrl + tab and expect Service.java to be selected, instead User.java is selected. Any ideas how to solve this?
请先登录再写评论。
What the version of IntelliJ IDEA? Is your editor split into several areas? Do you have "Tabs" feature disabled?
Screencast of the issue reproducing (with "presentation assistant" plugin enabled) will help to determine the cause faster.
Version:
IntelliJ IDEA 2019.3 (Ultimate Edition)
Build #IU-193.5233.102, built on November 27, 2019
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1979M
Cores: 12
Registry:
Non-Bundled Plugins: CMD Support, Lombook Plugin, Pythonid, com.intellij.lang.jsgraphql, org.intellij.scala, org.jetbrains.plugins.vue, org.nik.presentation-assistant
Tabs settings:
1:
2:
3:
4:
5.
6:
7:
so it goes: 1->2->3->1..
What I'm expecting is: 1->2->1->2..
It is because of the tabs limit. As there are no tabs, switcher does not see the "history" of opening. Switcher is designed to switch between tabs and in case there is only 1 tab opened, it suggests to open the next file in project view.
Change the limit of opened tabs to 10 and in case it is needed to hide tabs, just select "none" in "tab placement" like that:
https://i.imgur.com/kKMerVT.png
This way, switcher will work as expected.
Thanks that does it!
Konstantin Annikov, i've been using tab limit set to 1 for years, and this bug only occurs on the newest version of intellij.
This is a bug.
It will be fixed in the nearest update: https://youtrack.jetbrains.com/issue/IDEA-226761