14

Is there a shortcut key to switch back and forth between two tabs in Firefox?

For example, you can press CTRL + 1 to select the first tab, CTRL + 2 to select the second. What I want to do is switch between the current tab and the last selected tab. TV remotes have a similar previous or back button that does the same thing. If you only press this one button it will switching solely between two channels each time it is pressed. I see this is called a "last" button on TV remotes.

UPDATE:
I know you can move a tab to be right next to each other as tab 1 and tab 2 and then use ctrl + 1 and ctrl + 2 but I'm talking about a switch shortcut.

I'm using Mac.

mrd83
  • 551
1.21 gigawatts
  • 2,394
  • 8
  • 39
  • 59

5 Answers5

9

In the latest version of firefox you need to do:

  1. open about:config and
  2. search and change browser.ctrlTab.sortByRecentlyUsed to true

and you're done. Now you can switch between the last two selected tabs by quickly pressing Ctrl + Tab. If you press Tab repeatedly – or keep Ctrl pressed – you can switch to other tabs too.

9

In order to switch between the two last selected tabs (and to enable Windows like Alt + Tab task switching for Firefox Tabs) you need to

  1. open about:config and
  2. change browser.ctrlTab.previews to true

and you're done. Now you can switch between the last two selected tabs by quickly pressing Ctrl + Tab. If you press Tab repeatedly – or keep Ctrl pressed – you can switch to other tabs too. If you want to cycle the previews in reverse, just throw Shift in there as well.

JC2k8
  • 3,029
5

This should help you out Firefox Keyboard Shortcuts

As I said in my comment it can depend on the operating system you are using for Mac it is command + option + to go backwards and command + option + to go forward in the stack.

AMR
  • 580
2
  • Ctrl+Page Up
  • Ctrl+Page Down
Toto
  • 19,304
1

Check out the default behaviour of

Ctrl+Tab

and

Ctrl+Shift+Tab

These cycle through the open tabs in order, so if you're working on two tabs you can use these shortcuts to shift between them easily.

chim
  • 111