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.

2
6 comments

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.


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

-2

Rick wrote:

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.


Ctrl+E, Enter

3

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>

0


"dimiter" <dimiter@blue-edge.bg> wrote in message
news:c7oj0j$33c$1@is.intellij.net...

Rick wrote:

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.
>

Ctrl+E, Enter


Yep, I got used to it very quickly.


1

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.

0

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:

  • Edit > Macros > Start Macro Recording
  • Press Ctrl+E+E and Enter
  • Edit > Macros > Stop Macro Recording
  • Settings (`⌘ + ,` or `Ctrl + Alt + S`) > Keymap > Macros > Invoke Macro > Add Keyboard Shortcut

 

0

Please sign in to leave a comment.