29

Is there a way to cycle through open windows. I quite often use this when I want to reference something in another file. On windows this would typically be Ctrl + Tab, but I can't find a way to do this in Xcode on a Mac.

Eimantas
  • 48,927
  • 17
  • 132
  • 168
Xetius
  • 44,755
  • 24
  • 88
  • 123

9 Answers9

54

On a Mac you can cycle through any program's windows using Cmd + ` (backtick)

On Xcode4 same command is achieved with Cmd + Ctrl + /.

Eimantas
  • 48,927
  • 17
  • 132
  • 168
  • 3
    few extra shortcuts: Cmd + Opt + Left/Right - cycle through history of opened files; Ctrl + 1 - view list of history files Ctrl + 2 - view list of methods in opened file – Eimantas Sep 12 '09 at 17:13
  • Nope. On a German keyboard you won't have fun with back tick. Cmd-> (so far) does work on (almost) all apps. – qwerty_so Feb 23 '15 at 18:51
4

Basic MacOS stuff: ⌘` shift⌘`

See "system preferences>keyboard>keyboard shortcuts>Keyboard & text input" for all the juicy details.

32bits
  • 683
  • 7
  • 10
  • This is what I needed, thanks! (for switching between Xcode instances, rather than windows in one instance) – canhazbits Mar 16 '15 at 22:05
3

All Cocoa: ⌘< and ⌘> to cycle through application windows.

Nikolai Ruhe
  • 81,520
  • 17
  • 180
  • 200
  • 3
    That's what I thought too, but for me it just opens the SchemeManager... Maybe it has to to with a German Keyboard? – Git.Coach Jan 14 '13 at 12:38
  • 2
    @Tom No, it's broken with the american/international keyboard as well. I consider reporting this issue as a bug (though it's just one of many subtle UI bugs of Xcode). – Nikolai Ruhe Jan 14 '13 at 13:52
  • All applications are equal. But some applications are more equal than others. - Steve Jobs – qwerty_so Feb 23 '15 at 18:43
  • 1
    On Xcode 6.4 CMD+SHIFT+> works to cycle through open windows :) – riik Aug 31 '15 at 06:52
3

Open Preferences/Key Bindings and look at conflicts. You may find CMD+< to be in conflict. As mentioned by @Nikolai Ruhe CMD+< / > should cycle through ALL app windows.

Once again: All applications are equal. But some applications are more equal than others. - Steve Jobs

cheesysam
  • 1,109
  • 5
  • 15
  • 32
qwerty_so
  • 35,448
  • 8
  • 62
  • 86
2

Cmd + Tab switches from one application to another. Cmd + ` switches from one window to another within an application.

Yurii
  • 4,811
  • 7
  • 32
  • 41
TonioGA
  • 371
  • 2
  • 7
2

In the latest Xcode 7.0.1 onwards, you can now use CMD + ~. I spent a while to find out how to toggle between Xcode View Controller and the apple Documentation help I get upon CMD clicking. This works !

Naishta
  • 11,885
  • 4
  • 72
  • 54
2

For people with German and possibly other non-US keyboards, the default key combination often do not work; for example, ⌘< doesn't work in many of Apple's own apps like Xcode or Numbers, Pages etc.

Even Apple's own suggestion of "Umschalttaste-Befehlstaste-Tilde (~)" here https://support.apple.com/de-de/HT201236 (in German!) doesn't work! This is probably because the tilde ~ is available only via a key combination itself on German keyboards.

My solution was to rebind the "Move focus to next window" shortcut to ⌘^. This works in all apps for me so far.

1

Although not exactly what you're looking for, F10 (or Fn + F10 depending on your keyboard setup), will show you all windows belonging to the open program.

Jasper
  • 2,166
  • 4
  • 30
  • 50
cheesysam
  • 1,109
  • 5
  • 15
  • 32
0

On Xcode 6.4 CMD+SHIFT+< works to cycle through open windows :)

riik
  • 4,448
  • 1
  • 12
  • 16