157

I have opened many tabs while working on project. (new feature in Xcode 4).

But for switching from one tab to other tab, the only way I've found to do this is to use the mouse. Is there any way to switch between different tabs using keyboard shortcuts?

Cœur
  • 37,241
  • 25
  • 195
  • 267
sagarkothari
  • 24,520
  • 50
  • 165
  • 235

5 Answers5

318

Shortcuts are:

  • CMD + SHIFT + } - Select Next tab
  • CMD + SHIFT + { - Select Previous tab
Ben Clayton
  • 80,996
  • 26
  • 120
  • 129
gsempe
  • 5,371
  • 2
  • 25
  • 29
95

The default shortcuts are:

  • + SHIFT + { - Select Next Tab
  • + SHIFT + } - Select Previous Tab

But I prefer going to XCode -> Preferences -> Key bindings and changing them to:

  • CTRL + TAB - Select Next Tab
  • CTRL + SHIFT + TAB - Select Previous Tab

...so they work the same as in Chrome or Safari.

Mwiza
  • 7,780
  • 3
  • 46
  • 42
Grzegorz D.
  • 1,748
  • 15
  • 18
8

If the shortcuts don't work (because of language, for example), you can define custom shortcut:

  • XCode -> Preferences -> Key bindings

  • Make sure that "all" is selected

  • Define shortcuts for "Select Previous Tab" and "Select Next Tab"

I used cmd+pageup and cmd+pagedown, didn't generate any conflicts.

User
  • 31,811
  • 40
  • 131
  • 232
5

I perfer using BetterTouchTool to switch between tabs(include Chrome, Safari, Finder, Xcode, sublimeText and so on).

BetterTouchTool is a free software.

Just set TipTap Left and TipTap Right to cmd+shift+{ and cmd+shift+}.

And than, you can use trackpads with tiptap to switch between taps.

Here is my configuration:

Hope you will like it.

Fengson
  • 4,751
  • 8
  • 37
  • 62
JZAU
  • 3,550
  • 31
  • 37
5

XCode Windows menu option shows it as + } or + { but I think it is a bug since + {/} is used for increase indent or decrease indent. The correct sequence is + shift + } or {.

Mwiza
  • 7,780
  • 3
  • 46
  • 42
NewToIOS
  • 91
  • 1
  • 2
  • 1
    On my keyboard at least, { and } are shifted [ and ], so I think XCode is actually correct here, just not exactly clear. Personally I would have called it cmd+shift+[ and cmd+shift+] – CupawnTae Jan 07 '14 at 09:46
  • That's exactly the reason. If you try it out in the Preferences pane you see that if you do `cmd+[` it will show that as the shortcut, while if you use `cmd+shift+[` it will show `cmd+{` as the shortcut. – Johanneke Jun 16 '14 at 12:21