How to keymap "switch to last tab" that you worked on?
Answered
I see how I can move between "select next tab" and "select previous tab" but this is not the typical behavior I would like. There should be an easy way to "go back to the last tab being worked" - similar to how alt-tab works for switching to the last window worked with. I can't seem to find the keymapping for this.
Please sign in to leave a comment.
I think this is not exactly what you are looking for, but possibly close enough...: Try Ctrl-Alt-Left and Ctrl-Alt-Right (aka "Back" resp. "Forward" in the GoTo menu).
Regards,
Jens
Rick wrote:
Ctrl+E, Enter
You might want to have a look at the tabswitch plugin.
HTH,
Andrei
R> I see how I can move between "select next tab" and "select previous
R> tab" but this is not the typical behavior I would like. There should
R> be an easy way to "go back to the last tab being worked" - similar to
R> how alt-tab works for switching to the last window worked with. I
R> can't seem to find the keymapping for this.
R>
"dimiter" <dimiter@blue-edge.bg> wrote in message
news:c7oj0j$33c$1@is.intellij.net...
tab" but this is not the typical behavior I would like. There should be an
easy way to "go back to the last tab being worked" - similar to how alt-tab
works for switching to the last window worked with. I can't seem to find the
keymapping for this.
>
Yep, I got used to it very quickly.
Ctrl+E, Enter doesn't work if you are using the same file and have multiple tabs open, original request still could be useful when you are refactoring some old code and larger files.
Ctrl+Alt+Left Arrow - go back to last caret position
Ctrl+Shift+Backspace - go back to last edited location (in the same or another file/tab).
Ctrl+Tab and hold Ctrl - displays opened files Switcher popup.
Ctrl+Tab - switches between current and last opened file/tab.
Ctrl+E - displays recent files popup.
Ctrl+E+E - displays recent edited files popup (last edited on top)
Ctrl+Shift+E - displays recent locations popup.
Ctrl+Shift+E+E - displays recent edited locations popup (last edited on top)
Pressing Ctrl+E+E and Enter should go back to the last edited file.
As a workaround to do it in a single shortcut, you can record a macro and assign a keyboard shortcut to it:
I did this, but when invoking the macro, it stops after the window to choose file is opened as if the Enter key is not being played back. The same erroneous behavior occurs when choosing Edit → Macros → Play Back Last Macro.
The macro looks OK:
PyCharm 2026.1
Build #PY-261.22158.340, built on March 30, 2026
Source revision: 9a4acde0aae49
Subscription is active until November 29, 2026.
Runtime version: 25.0.2+10-b329.72 amd64137.0.17-261-b65
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.wl.WLToolkit
Linux 6.19.14-300.fc44.x86_64
Fedora Linux 44 (Forty Four); glibc: 2.43; desktop: KDE (plasmashell 6.6.4)
Exception reporter ID: 1811243130839a8-ecad-4f06-8fda-05e820a1baac
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 8192M
Cores: 12
Registry:
ide.windowSystem.autoShowProcessPopup=true
ide.experimental.ui=true
trace.state.event.service.url=https://api.jetbrains.cloud/trace-status
Non-Bundled Plugins:
ru.adelf.idea.dotenv (261.22158.354)
hg4idea (261.22158.185)
Subversion (261.22158.354)
org.jetbrains.security.package-checker (261.22158.180)
Key Promoter X (2026.1.0)
com.anthropic.code.plugin (0.1.14-beta)
org.turbanov.run.configuration.as.action (3.0)
PerforceDirectPlugin (261.22158.185)
org.jetbrains.plugins.remote-run (261.22158.354)
com.intellij.bigdatatools.kafka (253.25910.1)
Current Desktop: KDE
Hello Piotr Dobrogost
I tried to reproduce your issue, but I wasn't able to exactly. I'm setting up the same environment as you have to confirm whether this bug is present only in Fedora. Will come back with more information.
Hi again, Piotr Dobrogost (softax)
I was able to set up the environment using Fedora, and it looks like the problem is related to the configured Keymap in IntelliJ IDEA. As you will see in this screencast, I'm matching the Keymap to the Desktop (KDE); some keyboard keys may not work, depending on your keyboard layout.
Please check the keybord layout of your OS and the one configured in IntelliJ IDEA. This should solve the problem. Per testing with the correct keymap, the macro is working as expected.
My keymap is also based on KDE one:
I also tried with all plugins disabled, but the result was the same.
I also disabled all user keyboard layouts in the KDE settings, but still, the result was the same:
I highly doubt that keyboard layout would influence the behavior of the Enter key, as this key has the same function in any layout.
Hi again Piotr Dobrogost (softax)
I was able to reproduce the issue only when there's a mismatch between layouts, otherwise it works fine for me. I'm in a VM running FEDORA 44.
Please collect the logs immediately after the issue is reproduced by going to Help | Collect Logs and Diagnostic Data, then attach the zip file here or via our secure upload site https://uploads.jetbrains.com/, and share the uploadID to investigate further what's going on in your environment.