What is the way to quick-switch between tabs in XC

2019-03-08 12:27发布

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

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?

5条回答
Ridiculous、
2楼-- · 2019-03-08 12:40

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.

查看更多
混吃等死
3楼-- · 2019-03-08 12:50

I perfer using BetterTouchTool to switch between tabs(include Chrome, Safari, Finder, Xcode, sublimeText![enter image description here][1] 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.

查看更多
叼着烟拽天下
4楼-- · 2019-03-08 12:57

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.

查看更多
家丑人穷心不美
5楼-- · 2019-03-08 13:05

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

查看更多
贼婆χ
6楼-- · 2019-03-08 13:06

Shortcuts are:

  • CMD + SHIFT + } - Select Next tab
  • CMD + SHIFT + { - Select Previous tab
查看更多
登录 后发表回答