What is the way to quick-switch between tabs in Xcode 4

33,979

Solution 1

Shortcuts are:

  • CMD + SHIFT + } - Select Next tab
  • CMD + SHIFT + { - Select Previous tab

Solution 2

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.

Solution 3

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.

Solution 4

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.

Solution 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 {.

Share:
33,979

Related videos on Youtube

Sagar Kothari
Author by

Sagar Kothari

iOS App Developer, Android App Developer, ReactJS Developer, Flutter

Updated on July 08, 2022

Comments

  • Sagar Kothari
    Sagar Kothari almost 2 years

    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?

  • Chris Ladd
    Chris Ladd over 12 years
    That should be command + shift + ..., I think. At least on my machine.
  • Anand
    Anand over 12 years
    ya it should be command + shift.. the command + } indents the line with a tab
  • Pierre de LESPINAY
    Pierre de LESPINAY about 11 years
    CTRL + TAB is much better and not used by default. Pity that we can't bind last used tab.
  • Paul Brewczynski
    Paul Brewczynski almost 11 years
    I think everybody should assume that people are generally used to browser ~ and use CTR + TAB / CTR + SHIFT + TAB to change tabs.
  • CupawnTae
    CupawnTae over 10 years
    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+]
  • Vaibhav Saran
    Vaibhav Saran over 10 years
    2nd one is beneficial :)
  • Claudiu
    Claudiu about 10 years
    In Chrome it's also ALT-CMD-Left, so I changed it to that
  • Johanneke
    Johanneke about 10 years
    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.
  • DavidNorman
    DavidNorman over 9 years
    I love better touch tool. I think it's a great combo when used with XCode
  • Toerndev
    Toerndev over 7 years
    I'm on Xcode 8.2.1 and couldn't find the mentioned bindings, they have been renamed to "Show Next/Previous Tab".
  • falsecrypt
    falsecrypt over 6 years
    cmd + pageup is Move to Beginning of Document in Xcode 8 :-(
  • Kirkova
    Kirkova over 6 years
    Looks like CTRL + TAB already works by default on Xcode 9.2.1