xcode中对象库的搜索字段的键盘快捷键

问题描述 投票:10回答:5

是否有键盘快捷键,将我的光标直接放在对象库的搜索字段上。每当我想添加新视图时,我将鼠标拖到右下角,然后单击搜索字段以搜索“按钮”,“标签”等对象,而不是寻找键盘快捷键。

xcode xcode5
5个回答
6
投票

在对象库中您可以将焦点设置为直接对象,只需按键盘上的对象的特定键,

Sect焦点到对象库^⌥⌘3/ Command + Option -Ctrl +3

如果你想要UIButton,只需按B,焦点就是UIButton。

您不需要每次都在搜索栏中搜索。

要么

您可以更改对象库的GridView,以便您可以及时看到更多控件,

比你看到的还要多


21
投票

Xcode 10的说明:

用于打开对象库的键盘快捷键是:

Shift + Command + L.

或者来自Xcode:

查看 - >库 - >显示库

如下图:

enter image description here


3
投票

有一个比接受的答案更简单的捷径。

Command +选项+ L.

我刚刚发现的额外的东西。从对象库窗格中选择对象后点击进入将在当前所选视图内将其添加到故事板。


1
投票

All the Instruction of using the Library for xCode versions 10 and above

  1. 如果您将光标放在故事板上,您将看到对象库并可以使用快捷方式访问

Command +选项+ L.

enter image description here

  1. 如果您将光标放在类文件上,您将看到代码库,并且short将是相同的

Command +选项+ L.

enter image description here

  1. 可以使用快捷方式从任何位置访问媒体库

Command +选项+ M.

enter image description here

或者通过鼠标左键单击库图标

enter image description here

我希望你能得到你想要的所有答案,祝你有美好的一天!


1
投票

来自Xcode 10:

    ⇧⌘L Objects (cursor in storyboard), Snippets (cursor in assistant editor)  
    ⇧⌘M Media library 

     esc to escape this pop overs. 

shift command L : library objects/ code snippets
shift command M : media library 
© www.soinside.com 2019 - 2024. All rights reserved.