What is the way to quick-switch between tabs in Xcode 4
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 {.
Related videos on Youtube
Sagar Kothari
iOS App Developer, Android App Developer, ReactJS Developer, Flutter
Updated on July 08, 2022Comments
-
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?
-
Andrej over 7 yearsThis still applies to Xcode 8 and most answers still work ok.
-
zeytin over 3 yearsstackoverflow.com/a/64848763/14531220 this is the right answer now.
-
-
Chris Ladd over 12 yearsThat should be command + shift + ..., I think. At least on my machine.
-
Anand over 12 yearsya it should be command + shift.. the command + } indents the line with a tab
-
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 almost 11 yearsI think everybody should assume that people are generally used to browser ~ and use CTR + TAB / CTR + SHIFT + TAB to change tabs.
-
CupawnTae over 10 yearsOn 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 over 10 years2nd one is beneficial :)
-
Claudiu about 10 yearsIn Chrome it's also ALT-CMD-Left, so I changed it to that
-
Johanneke about 10 yearsThat'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 usecmd+shift+[
it will showcmd+{
as the shortcut. -
DavidNorman over 9 yearsI love better touch tool. I think it's a great combo when used with XCode
-
Toerndev over 7 yearsI'm on Xcode 8.2.1 and couldn't find the mentioned bindings, they have been renamed to "Show Next/Previous Tab".
-
falsecrypt over 6 years
cmd
+pageup
is Move to Beginning of Document in Xcode 8 :-( -
Kirkova over 6 yearsLooks like
CTRL
+TAB
already works by default on Xcode 9.2.1