在代码段库(Xcode 10)中添加代码段 [英] Adding code snippet in Code Snippet Library (Xcode 10)

查看:91
本文介绍了在代码段库(Xcode 10)中添加代码段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,当我使用 Xcode 10 beta 3 时,我试图制作代码段并将其添加到代码段库中

Recently when I was using Xcode 10 beta 3, I tried to make a code snippet and add it to the code snippet library.

但是无法完成拖放操作,因为代码段库已在Xcode 10中分离,并且在我单击代码时隐藏。

But the drag drop cannot be done as the code snippet library is detached in Xcode 10, and hides when I click on a code.

如何在Xcode 10的代码段库中添加代码段?

How to add code snippet in code snippet library in Xcode 10?

推荐答案

选择要添加到库中的代码。右键单击它,然后从弹出菜单中单击创建代码段

Select the code you want to add to library. Right-click on it and click on Create Code Snippet from the pop-up menu.

显然是Xcode 9 .xx,此选项不存在。

Apparently upto Xcode 9.x.x, this option was not there.

这篇关于在代码段库(Xcode 10)中添加代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆