1

In MacBook, Cmd+` cycles through the windows of the same application. However, if I have multiple windows open, then to toggle between two windows, I have to cycle through all the windows. Is there a way to move to the recent window instead of the next window?

The answers to Shortcut for toggling between different windows of same app? provide a keyboard shortcut to cycle through the windows of the same application. I know how to cycle through. However, I want to switch to the most recently opened window. For example, say I have five projects open in PyCharm, and I switch from project1 to project2; to come back to project1, I don't want to cycle through all the other projects (3,4,5). I want to quickly come back to project1.

In Ubuntu, Alt+` achieves. But Mac cycles through all the windows. I want to know how to achieve what Ubuntu does on Mac.

bmike
  • 235,889
  • You can cycle backwards with Cmd+Shift+`. That's slightly better, but not excactly what you are looking for. – htor Oct 23 '23 at 11:14
  • Thanks! The problem with this is that when I'm quickly changing between windows, I need to remember when to hold Shift and when not to. – Nagabhushan S N Oct 24 '23 at 04:40

1 Answers1

-1

I wonder if commandtab is what you're looking for?

commandtab while holding down the command key displays all open apps in a graphical "overlay".

Once the overlay is displayed, you can select an app using the arrow keys, or (easier) repeat the tab key while holding down the command key. Finally, and I think to address your question, just repeat the commandtab sequence to alternate back & forth between two apps.

Seamus
  • 4,547
  • That's too much work :) I mean, I want to switch between the windows without thinking much and in a fraction of a second. I need this when manually comparing some code across two different projects. – Nagabhushan S N Oct 24 '23 at 04:42
  • @NagabhushanSN: I don't understand why you don't see that cmd-tab does just that?! – Seamus Oct 25 '23 at 06:36
  • cmd+tab switches between different applications. I want to switch between different windows of the same application. Something that cmd+~ does, but it moves around the windows in a cyclic manner. I don't want that. I want to move to the next recently opened window (exactly like cmd+tab) but within the same application. Hope that clarifies – Nagabhushan S N Oct 27 '23 at 02:53