xcode 在界面生成器中显示/隐藏文档大纲的键盘快捷键
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22126903/
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
Keyboard shortcut to show/hide Document Outline in Interface Builder
提问by Martin Koles
I need to frequently hide and unhide navigators and inspectors to make room for Interface Builder and complex storyboards. I learned all show/hide shortcuts in Xcode for panes, but can't find any for showing and hiding Document Outline. Is there a way to achieve this on keyboard?
我需要经常隐藏和取消隐藏导航器和检查器,以便为 Interface Builder 和复杂的故事板腾出空间。我学习了 Xcode 中所有显示/隐藏窗格的快捷方式,但找不到任何用于显示和隐藏文档大纲的快捷方式。有没有办法在键盘上实现这一点?
回答by Flovdis
There is no defined keyboard shortcut to show/hide the document outline. But you can define new shortcuts for these actions.
没有定义的键盘快捷键来显示/隐藏文档大纲。但是您可以为这些操作定义新的快捷方式。
Just open the preferences (cmd+,) and search for "Document Outline" in the "Key Bindings" page.
只需打开首选项 ( cmd+ ,) 并在“键绑定”页面中搜索“文档大纲”。
回答by Martin Koles
Just to demonstrate the other solution how to setup the shortcut in System Preferences->Keyboard->Shortcuts.
只是为了演示如何在系统偏好设置->键盘->快捷方式中设置快捷方式的其他解决方案。
回答by Aruna
In one of the Xcode updates 6 or 7. ?9 is re-allotted for Navigators > Show Reports Navigator
在 Xcode 更新 6 或 7 之一中。 ?9 重新分配给 Navigators > Show Reports Navigator
so, System Preferences > Keyboard > Shortcuts > App Shortcuts > Show/ Hide Document Outline ?9 is invalidated by Xcode automatically.
因此,系统偏好设置 > 键盘 > 快捷方式 > 应用程序快捷方式 > 显示/隐藏文档大纲 ?9 由 Xcode 自动失效。
??9 is what I chose. in the Keybindings.
??9是我选择的。在键绑定中。