简体   繁体   English

如何创建 Xcode 源代码编辑器扩展?

[英]How Do I create an Xcode Source Editor Extension?

I would like to create an Xcode Source Editor Extension.我想创建一个 Xcode 源代码编辑器扩展。 A tutorial from this website shows a template for this in the new project menu.网站的教程在新项目菜单中显示了此模板。 However, as of Xcode 11.5, this is missing from the list of templates.但是,从 Xcode 11.5 开始,模板列表中缺少此内容。 Is there still a way to do this?还有办法做到这一点吗?

Xcode 模板

As stated in the documentation ,文档中所述,

begin by creating a new macOS project in Xcode.首先在 Xcode 中创建一个新的 macOS 项目。 Add a new Xcode Source Editor Extension target to your project将新的 Xcode 源编辑器扩展目标添加到您的项目

In other words, first create a new project.换句话说,首先创建一个新项目。 Then create a new target in said project.然后在所述项目中创建一个新目标。 That target being an Xcode Source Editor Extension.该目标是 Xcode 源编辑器扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM