7

From using GNOME and MacOS, I'm accustomed to have Alt+` to switch between windows of one application and Alt+Tab to switch between applications.

I have not yet found any setting or utility which would yield the same functionality on Windows (8). Do you have any tips?

3

6 Answers 6

6

There's no built-in way to switch between the windows of the same application. All top-level windows are displayed in Alt + Tab list. I mean if you have two instances of Notepad running, you'll see two windows of Notepad in Alt + Tab window list.

If you activate two windows of the same application in row, you can switch between them with single Alt + Tab press.

Additionally you can press Alt + Ctrl + Tab to display the list of windows, and then use arrow keys to select the required window; press Enter to switch to the window.
You can also use mouse to select a window from this list.


As an alternative way you can use Windows + T: each press activates the next button on the Taskbar (including the pinned, not started, applications). When you reach the required application, press Enter or Up and then use Left and Right arrows to select the required window and press Enter to switch to it.

Definitely Windows + T is slower than Alt + Tab.

25

There actually is a way to do this and it's probably the most often-used keyboard shortcut in my arsenal.

Simply type Windows + number, where number is a single digit, 1, 2, 3, ..., 9, 0. This allows you to access the first 10 applications that are currently sitting in your taskbar.
For example, I have Chrome pinned to the 1st location in my taskbar, so Windows + 1 always brings up Chrome. My favorite text editor (Vim will never die!) is tied to Windows + 2. And on down the line. I have the first 10 locations in my taskbar pinned so that I always know what a given Windows + number combination will bring up.

But more to the point, since the OP asked how to switch between multiple windows of the same application, here's where this keyboard shortcut gets really useful. To refine what I said earlier, Windows + number brings up the first instance of the application. But holding the Windows key brings up a list of windows of that application. (Similar to when you mouse over the grouped icons of an application in the taskbar.) Continuing to type Windows + number scrolls through that list.
For example, I earlier said I have Chrome tied to Windows + 1. More specifically, I always make sure that my gmail and calendar are in the first window of Chrome, so that Windows + 1 always jumps right to my email. But if I want to cycle through any of my other Chrome windows, I just keep the Windows pressed down and keep typing Windows + 1.

Another related and particularly useful variation of this is to add the Ctrl key. Windows + Ctrl + number brings up the last active window of the given application. This is very useful when you keep toggling back and forth between two different windows of the same application.

UPDATE Jan/2019: The above Windows + Ctrl + number shortcut appears to have been removed in Windows 10, starting from either version 1803 or 1809. I'll update this answer if I figure out a way to re-enable this shortcut. See https://superuser.com/a/1388225/288800, where there seems to be consensus that this is a bug, not a feature removal. Hopefully that answer will contain useful information if I forget to come back and update this one.

Please note that this answer was originally written when I was using Windows 7, but these shortcuts are also applicable according to Windows 8 and 10. See https://support.microsoft.com/en-us/help/12445/windows-keyboard-shortcuts for an explanation of the shortcuts in all three of those versions of Windows. That link also explains Shift and Alt key variations which you may also find useful, so I recommend taking a look at it.

UPDATE Nov/2019: Microsoft appears to have restored the Windows + Ctrl + number shortcut in Windows 10 version 1903. Hooray!

4
  • Unfortunately, the Windows + number only works if applications are grouped in the taskbar (which they are by default.)
    – Evie
    Commented Oct 6, 2015 at 5:00
  • Thanks a lot! This closes up the gap between win/mac usability a whole lot, although I still enjoy macOS' compact Cmd+` better.
    – kakyo
    Commented Apr 11, 2018 at 14:22
  • Many thanks, this saves my day! I'm using PuTTY and right now installing 5 servers, where I have 2 windows for each. And when closing all of them (Ctrl-D) this is very smooth, and saves me at least 30 seconds per day :)
    – 244an
    Commented Mar 20, 2020 at 15:29
  • if we now get a "switch the current group"-shortcut, windows would be much better equipped than macOs
    – pscheit
    Commented Jul 2, 2021 at 2:44
1

Autohotkey solution works exactly like in MacOS - cycling windows inside one application:

!`:: ;
WinGetClass, CurrentActive, A
WinGet, Instances, Count, ahk_class %CurrentActive%
If Instances > 1
    WinSet, Bottom,, A
WinActivate, ahk_class %CurrentActive%
return

Replace !`(Alt+`) with #`(Win+`) if you want to use Win as a modifier key. https://www.autohotkey.com/docs/Tutorial.htm#s21

0

Alt-Tab switches between Applications in Desktop mode, Win-Tab switches between Metro apps. To my knowledge, there is no built-in way to have this consistent. There is also no way to switch between Windows of one application, unless the application provides that.

I hope I got your question right...

1
  • Alt + Tab includes Metro apps, doesn't it? Commented Apr 27, 2013 at 13:07
0

Autohotkey proves more useful to me in this regard. I simply cannot remember how I organize my applications each day. And I don't like them pinned to the taskbar (which gets resetted at times due to the company settings).

With AHK I have one button to switch between the current active application. And other dedicated buttons to switch to FireFox, Outlook, Excel and Notepad++. f1+F (or whatever shortcut you pick) is more memorable for me than windows+number to switch to Firefox.

1
  • Hi Gerard and welcome to Super User! Thank you for the suggestion to use AHK- can you share wither an example or a snippet of how you have achieved this in your script? Thanks!
    – bertieb
    Commented Feb 7, 2018 at 12:31
0

use dimaqw answer

you should use ahk_exe replace ahk_class, beacuse vscode and chrome name is same.

^Tab:: ;
; WinGetClass, CurrentActive, A
WinGet, CurrentActive, ProcessName, A
; MsgBox, The active window's class is "%CurrentActive%".
; WinGet, OutputVar, ProcessName, A
; MsgBox, The active window's class is "%OutputVar%".
WinGet, Instances, Count, ahk_exe %CurrentActive%
If Instances > 1
    WinSet, Bottom,, A
WinActivate, ahk_exe %CurrentActive%
return

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .