Switching back to last *used* tab on Chrome

199

64

How do I toggle back to the last tab used in Chrome on Mac? Ctrl-Tab and Ctrl-Shift-Tab navigates the tabs in order. But I want to switch back and forth between two tabs similar to how how Cmd-Tab switches between the last two apps. There's a way to do this on Firefox but is there a solution for Chrome?

Sajee

Posted 2012-03-18T13:52:26.730

Reputation: 3 899

9

Also consider using either Opera or Vivaldi which are both chromium-based browsers that support last used tab via ctrl-tab

– User – 2016-06-25T12:36:32.197

Would you consider accepting http://superuser.com/a/1115469/170305 which is a direct solution that is current (didn't work when you posted the question)?

Alternately bounty it...

– djechlin – 2017-02-13T15:48:27.807

Click Ctrl + Tab – Connor Leech – 2018-03-01T20:38:54.297

@djechlin: See my comment on your answer. – SabreWolfy – 2018-08-09T09:50:37.773

This is a known issue that Chrome does not value. I switched to Opera solely for this issue and it's wonderful. Here's the thread on the issue going back to 2009: https://bugs.chromium.org/p/chromium/issues/detail?id=5569 It's marked as "won't fix". Do you really still want to use Chrome???

– User1 – 2019-03-24T00:32:23.467

There is no direct way. There for I move the two tabs together - next to each other – Ujjwal Singh – 2019-08-26T20:39:18.643

Oh yeah, 23 answers (at the moment) to try to solve a simple task that must be provided by the product out-of-the-box from the day one. Google, WHY..?! – RAM237 – 2019-09-19T13:02:58.853

Lovely, so many people have the habit with me. – Zhang – 2020-02-02T08:43:41.377

Answers

70

Chrome has no native keyboard shortcut for this, but there's an extension you can use:

Recent Tabs (Chrome Web Store)

Features

  • You can specify any keyboard shortcut you like (default: Ctrl + Q).

  • You can configure it to

    • show a list of the most recent tabs (much like Alt + Tab).

    • toggle between the last 2 tabs.

    whenever you press the keyboard shortcut.

Screenshot screenshot

Dennis

Posted 2012-03-18T13:52:26.730

Reputation: 42 934

10

You can bind to Ctrl+Tab by manually editing the Preferences file. Instructions here: http://superuser.com/questions/104917/chrome-tab-ordering/1139391#1139391

– GDorn – 2016-10-27T02:05:27.303

I could not get this extension to work. Take a look at Harshay Buradkar's answer below -- their extension worked for me: https://chrome.google.com/webstore/detail/clut-cycle-last-used-tabs/cobieddmkhhnbeldhncnfcgcaccmehgn

– Hawkeye Parker – 2018-11-25T19:59:04.957

This does not work with the latest update of Chrome. – Kulasangar – 2018-12-15T17:51:17.160

On my Chrome 71 under Mint 19 system, it brings up a list of MRU tabs, but then I manually need to click the one it highlights. It wouldn't be so bad if I could just press Enter or something (I tried a few things), but the way it is now, I still waste time with the mouse, just to go back to the previous tab. I appreciate your work, but I wish this could be better. – Michael Scheper – 2019-02-11T20:54:45.013

6

The AutoControl extension for Chrome can redefine native shortcuts like Ctrl+Tab and others. No need for sneaky hacks or manual edits.

– GetFree – 2019-04-03T02:42:00.213

by the way this feature works natively with Ctrl-Tab in Opera and Firefox – Dr.X – 2019-11-12T07:17:23.907

AutoControl does not support Mac! So it's a nope for me! – truongnm – 2020-02-21T03:41:01.407

23Any way this can override Ctrl+Tab? – Joe – 2012-08-20T01:50:56.117

13Just using an extension, no. The extensions web store page says You may ask why didn't I use Ctrl+Tab instead, that's cause Chrome does now allow extensions to map this shortcut key. If you insist in this shortcut, you could assign a different key to it and do a remapping with AutoHotkey. – Dennis – 2012-08-20T02:04:44.110

18Thanks. +1 for AutoHotKey. Shame Chrome has us jumping through hoops for such basic functionality. – Joe – 2012-08-20T12:18:10.893

59

I really wanted this feature myself, I have tried most existing extensions already available but none of them worked properly.

I went ahead and tried my hand at developing one myself and it seems to be working for me. The project is now open source on GitHub. Figured it might help others, too.

Here is the link: CLUT: Cycle Last Used Tabs

Keys can be changed in keyboard shortcut settings on the Chrome extensions page: enter image description here enter image description here enter image description here

Or, for older versions of Chrome: enter image description here

Harshay Buradkar

Posted 2012-03-18T13:52:26.730

Reputation: 699

10I don't know how you did it better than everyone else, but I want to give you major props here and hope the whole world finds out about this extension. For many people, this is literally a dealbreaker that prevents them from switching to Chrome. – Neil Traft – 2017-04-19T01:03:38.547

1

Also, for people who want to map this to Ctrl+Tab, the Ctrl+Tab MRU plugin page has instructions for manually editing your preferences file (you don't need to install that plugin, you just need to follow their instructions). It really works!

– Neil Traft – 2017-04-19T01:06:21.417

11

be aware that this extension tracks your usage with Google Analytics https://github.com/harshayburadkar/clut-chrome-extension/blob/1d80bb7343a7e9e8dd2b3b566eb4e815bc39eb85/background.js#L340-L360

– mark – 2017-04-28T18:48:53.343

1Harshay, could you comment on mark's comment? The tracking code is still present at master... – Borislav Ivanov – 2017-07-25T11:02:12.850

11@BorislavIvanov Its usual Google Analytics which every website anyways already uses. It is to see how many people actually use the extension as opposed to install to try out but don't remove the extension even if it they don't like it. It is anonymous tracking and it just shows for e.g. 3000 users used it in the last week and so on. None of any private data is tracked. I added it to see how much is people's interest towards the extension and to decide if I should invest in improving the extension further. Mark's comment is just creating a little unnecessary scare. – Harshay Buradkar – 2017-07-26T07:38:21.993

@NeilTraft, The instructions for manually editing doesn't seem to work for me on Windows 10. I edit the file, but as soon as I restart Chrome, the file gets overwritten, and the default Ctrl+Tab behavior gets restored. – devuxer – 2018-10-23T18:42:33.417

1@devuxer Agreed, I find the same on all platforms: Linux, Mac. I have gotten into the habit of editing the Preferences file before every single time I start Chrome, since I'm so addicted to the functionality. This works okay for me since luckily I only restart Chrome once every couple weeks at most. – Neil Traft – 2018-12-11T16:58:13.270

1Now with Chrome version 75.0.3770.80, the shortcuts can be edited under chrome://extensions/shortcuts (or from the sandwich menu on the upper left, once on extensions) – Simon – 2019-06-06T15:50:29.477

Stop collecting my browsing data though. Not cool. – Ulf Aslak – 2019-06-13T07:01:34.420

19

Recent Tabs has a serious problem of interfering with keyboard events handling. It slows down the whole browser key handling. For example, after enabling the extension, go visit http://fullscreenmario.com and try to control Mario with keyboards. FPS goes rapidly down to 5 or 6.

Not a problem, but a limitation with the extension is it can't move between chrome://* pages or blank page.

There is a working alternative : Toggle Switch Recent Last Tabs. It doesn't slow down the browser. It can switch between any pages.

June Kim

Posted 2012-03-18T13:52:26.730

Reputation: 315

Imho not any, but only between two. But it has useful option(only one option :) ) - go to recent on close. So it is very useful – Gennady G – 2015-11-05T16:36:34.357

1The link is dead – User – 2016-12-19T04:18:28.287

@User which one,link to alternative is ok at the moment... – Betlista – 2019-01-09T12:10:04.773

Toggle Switch Recent Last Tabs. works well, but seems to not be able to switch tabs across chrome windows. – Siddhartha – 2019-06-14T18:30:42.847

9

I finally found a REAL Ctrl-Tab solution and not just an "use an alternative keyboard shortcut"-solution!

  1. Install this extension: CLUT: Cycle Last Used Tabs
  2. Then go to the chrome extensions (chrome://extensions or newer Version: chrome://extensions/shortcuts) and scroll down to the Keyboard shortcuts
  3. Enter a keyboard shortcut, e.g. Ctrl+A for "Quick switch"
  4. Close Chrome completely
  5. Open the Chrome preferences file:
    • Mac: ~/Library/Application Support/Google/Chrome/Default/Preferences
    • Windows: C:\Users\YOUR_USERNAME\AppData\Local\Google\Chrome\User Data\Default\Preferences
    • Ubuntu: ~/.config/chromium/Default/Preferences
  6. Search for the previously set keyboard shortcut inside the file, e.g. Ctrl+A and replace it with Ctrl+Tab.
  7. Save and close the file
  8. Reopen Chrome and be finally a happy Chrome user!

mchief90

Posted 2012-03-18T13:52:26.730

Reputation: 202

5This doesn't work for me on the latest version. Whenever I close Chrome and change Ctrl+A to Ctrl+Tab, and restart Chrome, the browser changes it back to Ctrl+A. – Sheen – 2018-01-08T09:58:26.380

Are you sure, that Chrome is completely closed when you edit the preferences file? – mchief90 – 2018-01-08T09:59:55.320

3Also doesn't work for me... – DarkCowboy – 2018-01-15T13:38:59.210

For which OS is it not working? – mchief90 – 2018-01-15T19:46:48.923

3@mchief90 Windows 10, not working. – Sheen – 2018-02-22T16:12:43.750

1

@Sheen and @DarkCowboy, here is a simpler way to use ctrl-tab as a shortcut without editing the prefs file: https://superuser.com/a/1326712/736443 It sidesteps the checking Chrome does to block ctrl-tab, so it's Chrome itself that saves the shortcut to its prefs file. That means it will survive restarts of the app.

– jdunning – 2018-06-09T22:06:04.667

1This worked for me, but, before closing Chrome, I had to copy all the contents of the Preferences file to clipboard. Had to do this because, somehow, when restoring my windows from the previous session, chrome was replacing the Preferences content with something else. So: copy Preferences content to clipboard, quit chrome, paste back the content from clipboard to Preferences, do the key replacement, save the file and start Chrome. Worked fine for me – Alex Burdusel – 2019-01-09T11:05:38.130

8

There's finally a Chrome extension that solves this for good.

It's called Tab Thumbnails Switcher.

It supports Ctrl+Tab and Ctrl+Shift+Tab out of the box for switching between tabs in last used order.

enter image description here

From the extension's page:

A tab switcher menu with thumbnail previews similar to Windows 10 task switcher.

➭ Tabs are in recently used order.

➭ You can use Ctrl+Tab and Ctrl+Shift+Tab to select the desired tab or choose a different shortcut.

➭ Mouse-only method: Click on the toolbar button and then click on the desired tab.

➭ It doesn't interfere with the web page you are viewing.

➭ The tabs menu pops up instantly for a fast tab switching.

➭ Works offline. No need for an internet connection.

➭ Tab Thumbnails Switcher does not access or collect your personal data.
...

✔ The tab menu is implemented in machine code, which allows it to pop up instantly without annoying loading delays.

✔ It can redefine Ctrl+Tab shortcut for switching between tabs.

✔ It doesn't inject code into every page you visit, thus avoiding sluggish page loads and conserving CPU and memory.

✔ It works on ALL tabs. Either PDF documents, the New Tab Page, extension pages, Chrome pages, you name it.

HrW

Posted 2012-03-18T13:52:26.730

Reputation: 81

the problem is you have to install an exe file in your computer which I can't for security resons – derloopkat – 2019-05-10T09:46:23.417

@derloopkat, distrust by default should always be the norm. However, in this case the executable comes from the Chrome Web Store. There's no way Google is going to distribute malware. I myself was quite wary so I installed it on a VM and monitored its activity. Only then I came here and posted it. – HrW – 2019-05-12T00:17:00.027

4

This seems to be a derivative of another one called AutoControl Shortcut Manager which can do this too.

– GetFree – 2019-06-09T08:25:22.080

5

Here is how to do it without thumbnails: Switch to last used tab in chrome

– Tim – 2019-10-25T05:31:37.757

5

I've found these to work for me:

  • Command + 1-8 will select the tab at that position,
  • Command + 9 will select the last tab.

If you are like me and have more than 9 tabs open, you are left with cycling through tabs with:

  • Command + { to go back to a previous page
  • Command + } to go forward to a page that you came from (after u click back)

johnv

Posted 2012-03-18T13:52:26.730

Reputation: 59

Command + 9 select the last (right-most) tab. The question is about selecting the last used (most recently-used tab), not the last tab on the right of the tab-bar. – SabreWolfy – 2018-08-09T09:50:09.470

This isn't helpful in making chrome act like every other subwindowed application – Lassi Kinnunen – 2019-07-03T08:13:46.833

This is the least intrusive working answer (i.e. no need to install an extension)! For me that want to move back and forth between two tabs, I can order one to the rightmost position and reach it with Ctrl+9 and use for example Ctrl+5 to get the other page that I use. – Dataman – 2020-02-21T10:40:24.323

3

Vimium is really cool. i.e. ^ (Shift + 6) to switch to previous tab https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb?hl=en

Pawel

Posted 2012-03-18T13:52:26.730

Reputation: 141

Pity it doesn't switch between the previous and current tab, so that you can use it to go back to the previous tab and then return to your current tab. – SabreWolfy – 2018-08-09T09:53:29.523

3

Update: Building on Shad's clever approach using AutoHotkey, here's how to enable ctrltab to open the QuicKey recent tabs menu, navigate within it by pressing ctrltab again to select a tab, and then releasing ctrl to switch to that tab (Windows only):

  • Install QuicKey from the Chrome webstore.
  • Download and install AutoHotkey.
  • Open your PC's startup folder by following these instructions.
  • Go to this GitHub page and click Download ZIP.
  • Unzip the archive and drag the ctrl-tab.ahk file from the ZIP into your startup folder.
  • Double-click the ctrl-tab.ahk file.

Now switch between a few different tabs in Chrome using the mouse (since QuicKey was just installed, it doesn't have any recent tab history). Then press and release ctrltab to switch to the previous tab. If you press ctrltab and keep holding ctrl, a menu of recent tabs will open. Press tab to select the next tab in the list. When the desired one is selected, release ctrl to switch to it.

The other shortcuts listed below continue to work, so you can press altQ to open QuicKey and search for a tab.


QuicKey (Chrome webstore) is another extension that provides this missing feature. It also offers a menu that's somewhat similar to the most recently used (MRU) menu you get in Firefox after pressing ctrltab and then releasing tab while holding down ctrl, which makes it easy to select any recent tab from the list.

  • To switch to the most recently used tab:
    • Press ctrlA (altA on Windows).
  • To switch to the next most recently used tab:
    • Press ctrlA again within 750ms. Press it repeatedly to navigate further back in history.
    • Press ctrlS to navigate in the opposite direction.
  • To pick a tab from the menu using just the keyboard:
    • Press ctrlQ but keep holding the ctrl key (alt key on Windows).
    • Press W to move down through the list of recent tabs.
    • Press shiftW to move up.
    • Release ctrl to switch to the selected tab.

The above keyboard shortcuts can be changed in chrome://extensions/shortcuts.

jdunning

Posted 2012-03-18T13:52:26.730

Reputation: 261

3

  Chrome on Windows (at least version 30) allows to use a Ctrl+Tab keyboard shortcut for the extensions, and some extensions do use this functionality.
  The following might work on Mac as well:

  1. Install an extension which switches to last viewed tab, like FLST Chrome (remembers only one tab into the past) or Ctrl+Tab MRU (requires a bit longer Ctrl+Tab press).
  2. Go to chrome://extensions page, click on 'Keyboard shortcuts' link at the very bottom and set Ctrl+Tab as keyboard shortcut for the extension you installed in step 1

Mykola Novik

Posted 2012-03-18T13:52:26.730

Reputation: 111

Ctrl+Tab MRU is the closest option to what I'm used to in Opera and FF – KalenGi – 2014-10-11T08:09:42.050

3How does Chrome support Ctrl+Tab? Whenever I try to set that as a shortcut for an extension in the extension tab, Chrome switches to the next tab. From the Ctrl-Tab MRU-Extension: It seems that CHROME HAS DISABLED the possibility to use Ctrl+Tab as a shortcut :-( I'll be looking into this and if we get a workaround for this – flu – 2014-10-17T09:57:12.730

3

Here is the AutoHotKey script to remap the Ctrl+Tab shortcut with CLUT (from Harshay answer) only with Chrome:

; Chrome context
#IfWinActive ahk_class Chrome_WidgetWin_1
^Tab::Send !{w}
+^Tab::Send !{s}

; Back to global context
#IfWinActive

It does not emulate exactly the real Ctrl+Tab behavior: Ctrl+Tab will switch only between the two last tabs, and Ctrl+Shift+Tab will switch through the whole history.

calandoa

Posted 2012-03-18T13:52:26.730

Reputation: 192

AutoHotKey is for Microsoft Windows. – joeytwiddle – 2016-02-23T10:15:02.343

2

Ctrl + 1 takes you to tab 1

Ctrl + 2 takes you to tab 2 etc..

Pretty handy if you're opening multiple links from a page that doesn't support middle clicking or right click menus.

Soulwake

Posted 2012-03-18T13:52:26.730

Reputation: 37

5That's nice, but doesn't answer the question of how to switch to the last-used tab. If you know, please edit your answer with the "edit" link. – Ben N – 2016-01-08T14:48:27.447

2

I built this Chrome extension to do just that; Toggle between the last two active tabs using a global hotkey. This means you don't need Chrome to be focused to toggle.

https://chrome.google.com/webstore/detail/toggletab/iblgdmlpmokbijhiebnffnffablkkedk

Soviut

Posted 2012-03-18T13:52:26.730

Reputation: 312

2

If you need to specifically work with 2 tabs, you can drag the tab out to create a new Chrome window.

Then you can ALT Tab on Windows and Cmd ⌘ ` on a Mac.

VitalyB

Posted 2012-03-18T13:52:26.730

Reputation: 225

2

If you have a full size keyboard, you can use CTRL+PgUp (go to prev tab) and CTRL+PgDn (go to next tab). It is not the same but close enough for me.

an phu

Posted 2012-03-18T13:52:26.730

Reputation: 121

2

The tricky solution to achieve this on Windows is to combine Quick Tabs chrome extensions and AutoHotkey script. I've described it in details here, so here is in a nutshell:

1) Quick Tabs is an open-source, customizable extension, that allows you redefine some CSS styles and allows to setup hotkey for switching MRU tabs. Also it supports keyboard navigation (move to next/previous tab). However chrome doesn't let you bind Ctrl+Tab as a keyboard shortcut, so you need to register another one (for example Ctrl+Shift+S) and then use AutoHotkey script to "remap" Ctrl+Tab for chrome into Ctrl+Shift+S.

2) I won't put here the AutoHotkey script, you can find it here. It covers Ctrl+Tab remapping and handle all the keyboard navigation.

As a result you will see something like that when press Ctrl+Tab in active chrome window:

Arrows navigation, Esc, both Ctrl+Tab and Ctrl+Shift+Tab are working the way you expected.

Shad

Posted 2012-03-18T13:52:26.730

Reputation: 121

1

That's some serious AHK wizardry! You may want to check out my QuicKey extension: https://fwextensions.github.io/QuicKey/ It looks much like your styling of Quick Tabs without any custom CSS. And by slightly modifying your AHK script, I was able to get ctrl-tab working nicely with it: https://gist.github.com/fwextensions/511e0f6886eac3d07cf7a21fbb10a6c7 Quickly pressing ctrl-tab to toggle between tabs seems much faster and more reliable than when I was testing with Quick Tabs.

– jdunning – 2018-06-09T22:26:02.710

It's not that complicated, press ctrl-e to open the quicktab list and press enter to go to that last one which is the one that is selected by default, want the one before, just press down. Also, no need to keep holding down two keys to navigate bacwards – Juan Mendes – 2018-09-27T13:11:37.730

1

Looks like this is standard now on Chrome - when you close a tab, the focus jumps back to the last used tab. Just noticed it this week. Version 73.0.3683.86.

user2255062

Posted 2012-03-18T13:52:26.730

Reputation: 11

If this question was not 7 years ago, or if you provived with a link to the changelog, this answer might be helpful. But this way, it is not. – davidbaumann – 2019-04-12T16:18:55.940

1

I created a minimalist Chrome extension called Previous Tab to solve this problem. This extension requires no special permissions.

Press Ctrl+q to switch to the previously active tab, or click the Previous Tab icon.

You may customize the keyboard shortcut by visiting chrome://extensions/configureCommands

Note that Tab is not a supported key for Chrome extension commands.

mark

Posted 2012-03-18T13:52:26.730

Reputation: 539

This works great with the AHK trick mentioned above (something I couldn't get to work with Quick Tabs). To use Ctrl+Tab to toggle between two tabs, just install mark's Previous Tab, set the Keyboard shortcut to Alt+S under chrome://extensions/shortcuts then use an AHK script with the following: #IfWinActive ahk_class Chrome_WidgetWin_1 ^Tab::Send !{s} #IfWinActive – Ryan C. – 2020-02-13T04:27:56.850

1

I like to toggle between two tabs when filling out forms or comparing pages, etc. As a work around to there being no hot hey for the last used tab, I drag the two tabs into their own window and use the Command+Option+right arrow to go back and forth quickly.

kman

Posted 2012-03-18T13:52:26.730

Reputation: 111

1

Note I'm using Windows. This lack of ctrl+tab for "last used tab" support is why I still favor Firefox over Chrome. It is integral to my browser usage. This is what I realized today:

  1. Opera has ctrl tab for last used tab. (To enable go to opera://flags/ and change the 'Tab cycling' option)

  2. Opera uses webkit and the Blink rendering and V8 javascript engines (which at the time of this writing are the same that chrome uses). So it seems like, for my purposes, it is chrome.

I installed Opera for the first time ever today and am going to give it a go for replacing chrome.

User

Posted 2012-03-18T13:52:26.730

Reputation: 2 430

0

  • Install quick tabs

  • Press ctrl+e (or +e)

    • A list of tabs shows up, that last one is already focused
  • Hit enter

If you want to go through your history, press the down arrow once to the to the tab used before the last one.

I know there's an answer using quick tabs already but it requires too much just to do it using ctrl-tab. I'd rather keep that functionality, plus, I often want to search my tabs, which is what the plugin is really designed for.

Juan Mendes

Posted 2012-03-18T13:52:26.730

Reputation: 101

0

There is official support for this command. Use Ctrl+9.
Please see the this link.

Or am I missing something here?

Harry K

Posted 2012-03-18T13:52:26.730

Reputation: 9

1The original question meant "last" as in "most recent in time; latest." not, "coming after all others in time or order; final." Ctrl+9 does the latter – mark – 2019-04-16T00:58:48.740

0

In contrast to a key combination for switching to the most recently used tab, you may like this very light and intuitive solution for tabs organizing in the most recently used order, which is supported in all major browsers (Chrome, Firefox, Opera, other Chrome-based browsers): Tab Slider. Its features are:

  • Works just like Alt+Tab on Windows or Cmd+Tab on Mac, but with browser tabs
  • Visually sorts tabs so you always see them in the MRU order (Ctrl+Tab switches to the next MRU tab)
  • Works with pinned tabs as well
  • Is customizable (however, I would advise sticking with defaults)

Try it! Hope you'll love it.

img

ZitRo

Posted 2012-03-18T13:52:26.730

Reputation: 101

-1

For me Ctrl+1 switches between two most recent tabs.

aethos

Posted 2012-03-18T13:52:26.730

Reputation: 19