9

I'm running Xcode 4.4 on Mountain Lion.

Is there a keyboard shortcut for cycling through open tabs in a window?

I know that COMMAND+` cycles through the Xcode windows, but I want to cycle through tabs.

Is there a keyboard shortcut for this?

jahroy
  • 22,322
  • 9
  • 59
  • 108
Darren
  • 10,091
  • 18
  • 65
  • 108

4 Answers4

18

This works for Terminal, Xcode, Safari, Firefox, and probably many others:

Previous Tab: COMMAND+{

Next Tab: COMMAND+}

It's easy to remember:

  • the braces point left and right (towards the tabs they activate)
  • the keys are positioned conveniently next to each other on the keyboard.
jahroy
  • 22,322
  • 9
  • 59
  • 108
  • 7
    Note that these can be configured in Xcode's preferences window. Look for Select Next Tab and Select Previous Tab (or just type the word 'tab' in the search bar on the Key Bindings page.) – Tim Aug 31 '12 at 19:35
  • 1
    As of Xcode 11.2.1, your answer is not valid. This doesn't work. Please update your answer to `ctrl` + `tab` / `ctrl` + `shift` +`tab` and `command` + `shift` + `{` / `command` + `shift` + `}` . – Sachin Chandil May 19 '20 at 05:09
  • @chandil03 - Isn't that what I have? You can't type a `{` or `}` character without hitting shift. – jahroy May 19 '20 at 23:38
  • Ohh, sorry missed it. – Sachin Chandil May 20 '20 at 08:44
3

Here's an alternative way to cycle tabs across Mac apps: ctrl+tab

Add shift to toggle direction.

JBallin
  • 8,481
  • 4
  • 46
  • 51
1

enter image description here

Model.m to AttachmentFile.swift tab use: ctrl + tab ; ctrl + shift + tab to go backwards

Model.m to Entitlement.swift mini tab use: cmd + shift + { or }

To other window of Xcode use: cmd + ~

candyline
  • 788
  • 8
  • 17
0

Named shortcuts do not activate recent tabs, but help cycle through tabs in either direction. Firefox has a nice feature with which tabs used are available as a stack and can be accessed in the same manner the OS allows switching between recently used applications (in FF it's Ctrl+Tab on macOS).

johanwannheden
  • 852
  • 8
  • 8