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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22299261/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 04:44:12  来源:igfitidea点击:

keyboard shortcut for object library's search field in xcode

xcodexcode5

提问by Tamil

Is there a keyboard shortcut that will directly put my cursor on the object library's search field. Whenever I want to add new view i drag my mouse to the bottom right and click on the search field to search for objects like "button" "label" instead i am looking for a keyboard shortcut.

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

采纳答案by Toseef Khilji

Update for Xcode 10

Xcode 10 更新

Shortcuts from the keyboard for opening the Object Library is:

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

Command+ Shift+ L

Command+ Shift+L



Old

老的

In object Library You can set your focus Direct to object, using just press particular key for object from keyboard,

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

Sect focus to Object Library ??? 3/ Command+ Option-Ctrl+3

将焦点转向对象库???3/ Command+ Option- Ctrl+3

If you want UIButton just press Band focus is on UIButton.

如果您想要 UIButton,只需按下B并关注 UIButton。

You not need to search every time in searchbar.

您无需每次都在搜索栏中进行搜索。

Or

或者

You can change GridView of Object Library so you can see more controls at time, enter image description here

您可以更改对象库的GridView,以便您可以同时看到更多控件, 在此处输入图片说明

Than you will see like

比你会看到

enter image description here

在此处输入图片说明

回答by Chowdhury Md Rajib Sarwar

Instructions for Xcode 10:

Xcode 10 说明:

Shortcuts from the keyboard for opening the Object Library is:

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

Shift+ Command+ L

Shift+ Command+L

Or from Xcode:

或者从 Xcode:

View -> Libraries -> Show Library

查看 -> 库 -> 显示库

like the following image:

像下图:

enter image description here

在此处输入图片说明

回答by andrei

there's a simpler shortcut than the accepted answer.

有一个比接受的答案更简单的快捷方式。

Command+ option+ L

Command+ option+L

Something extra that I've just found out. Tapping enter after selecting an object from the object library pane will get it added to the storyboard, inside the currently selected view.

我刚刚发现的一些额外的东西。从对象库窗格中选择对象后点击 Enter 会将其添加到故事板中,位于当前选定的视图中。

回答by tryKuldeepTanwar

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

使用 xCode 10 及以上版本库的所有说明

  1. If You have your cursor on storyboard you'll see Object Library and can access with shortcut
  1. 如果您将光标放在情节提要上,您将看到对象库并可以使用快捷方式访问

Command+ option+ L

Command+ option+L

enter image description here

在此处输入图片说明

  1. If You have your cursor on your Class file you'll see Code Library and short will be the same
  1. 如果您将光标放在 Class 文件上,您将看到 Code Library 和 short 将相同

Command+ option+ L

Command+ option+L

enter image description here

在此处输入图片说明

  1. Media Library can be accessed from everywhere using the shortcut
  1. 可以使用快捷方式从任何地方访问媒体库

Command+ option+ M

Command+ option+M

enter image description here

在此处输入图片说明

or by holding the left mouse click over the library icon

或通过按住鼠标左键单击库图标

enter image description here

在此处输入图片说明

I hope you have all the answers you were looking for, Have a great day!

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

回答by Sree

from Xcode 10:

从 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