I often use the Cmd+Tab shortcut to switch between different applications (for example: Xcode and Google Chrome), but is there a shortcut to switch between different windows of the same application (for example, from one window in Google Chrome, to another)?
The default shortcut is Cmd` (that's a backtick).
You can always change that shortcut if the given one does not work out for you. Go to → System Settings (or System Preferences for older macOS versions) → Keyboard → Keyboard Shortcuts → Keyboard.
Here, assign a custom combination to Keyboard » Move focus to next window (under OS X 10.9 and above)
Above, I chose Cmd<.
This will allow you to toggle between the open windows of any application.
- Cmd` works only if all windows are on the same workspace (comment @thias).
- Some applications may intercept your chosen shortcut, so you might have to find another one that is unique.
This is what I found on my default US english keyboard setting.
Toggle between Different Apps -> Command + Tab
Toggle between Same App in Same Workspace -> Command + `
Toggle between Same App across different Workspace:
- View same App windows across All Workspaces -> Control + Down Arrow
- Then select with arrow keys or click the app window you want.
I'm on Mavericks and I was looking for a keyboard shortcut to quickly switch between tabs in Chrome. Cmd +` didn't work for me, although I made sure it was correctly setup in System Preferences → Keyboard → Keyboard Shortcuts. What I found is that Ctrl + Tab works! So for me it's Cmd + Tab to switch between applications, and Ctrl + Tab to switch between the same application's windows, try this if other suggested solutions don't work.
So I have found that sometimes certain applications do not want to cycle through the different open windows using Cmd+Tab or Cmd+' - VMware is one example, especially when one of the windows has been minimized to the dock. So what I have found is using expose to view all windows helps - there is a mouse gesture for this which is a four finger clinch I think - or F3.
Then you can select which window you want to view.
Hope this helps!
In macOS 13.x Ventura, this is where the setting is located. In the System Settings, choose Keyboard in the left-hand pane. Then, click the Keyboard Shortcuts… button in the right-hand pane. That opens the following pop-up window, where again, you need to choose Keyboard in the left-hand pane. In the example shown, I have manually set the shortcut for Move to next window to Command + "<":