ios 在 Xcode 4 中的选项卡之间快速切换的方法是什么
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6491023/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the way to quick-switch between tabs in Xcode 4
提问by Sagar R. Kothari
I have opened many tabs while working on project. (new feature in Xcode 4).
在处理项目时,我打开了许多选项卡。(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?
但是为了从一个选项卡切换到另一个选项卡,我发现这样做的唯一方法是使用鼠标。有没有办法使用键盘快捷键在不同的选项卡之间切换?
回答by gsempe
Shortcuts are:
快捷键是:
- CMD+ SHIFT+ }- Select Next tab
- CMD+ SHIFT+ {- Select Previous tab
- CMD+ SHIFT+ }- 选择下一个选项卡
- CMD+ SHIFT+ {- 选择上一个选项卡
回答by Grzegorz D.
The default shortcuts are:
默认快捷键是:
- ?+ SHIFT+ {- Select Next Tab
- ?+ SHIFT+ }- Select Previous Tab
- ?+ SHIFT+ {- 选择下一个标签
- ?+ SHIFT+ }- 选择上一个标签
But I prefer going to XCode -> Preferences -> Key bindings
and changing them to:
但我更喜欢去XCode -> Preferences -> Key bindings
并将它们更改为:
- CTRL+ TAB- Select Next Tab
- CTRL+ SHIFT+ TAB- Select Previous Tab
- CTRL+ TAB- 选择下一个标签
- CTRL+ SHIFT+ TAB- 选择上一个标签
...so they work the same as in Chrome or Safari.
...因此它们的工作方式与 Chrome 或 Safari 中的相同。
回答by Ixx
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"
XCode -> 首选项 -> 键绑定
确保选择了“全部”
定义“选择上一个标签”和“选择下一个标签”的快捷方式
I used cmd+pageupand cmd+pagedown, didn't generate any conflicts.
我使用了cmd+pageup和cmd+ pagedown,没有产生任何冲突。
回答by JZAU
I perfer using BetterTouchTool to switch between tabs(include Chrome, Safari, Finder, Xcode, sublimeText![enter image description here][1] and so on).
我更喜欢使用 BetterTouchTool 在选项卡之间切换(包括 Chrome、Safari、Finder、Xcode、sublimeText![在此处输入图像描述][1] 等)。
BetterTouchTool is a free software.
BetterTouchTool 是一款免费软件。
Just set TipTap Left
and TipTap Right
to cmd+shift+{
and cmd+shift+}
.
只需设置TipTap Left
和TipTap Right
到cmd+shift+{
和cmd+shift+}
。
And than, you can use trackpads with tiptap to switch between taps.
而且,您可以使用带有提示的触控板在点击之间切换。
Here is my configuration:
这是我的配置:
Hope you will like it.
希望你会喜欢。
回答by NewToIOS
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 {.
XCode Windows 菜单选项将其显示为?+}或?+{但我认为这是一个错误,因为?+{/}用于增加缩进或减少缩进。正确的顺序是?+ shift+}或{。