参考Swiftify
第 1 步:确保您拥有最新版本的 Xcode(推荐 Xcode 11 及更新版本)。
第 2 步:注册或注册到网站以下载该应用程序。
第 3 步:下载并安装适用于 Xcode 的 Swiftify。
第 4 步:如果应用程序被阻止运行,请转到 Apple 菜单 > 系统偏好设置... > 安全和隐私 > 常规选项卡。在标有“允许从以下位置下载应用程序”的部分下,选择“Mac App Store 和已识别的开发者”。

第 5 步:从 Applications 文件夹中运行“Swiftify for Xcode”并输入以下 API 密钥:
Please, Sign In or Sign Up Free to get your own API key.
第 6 步:如果 Editor 菜单中没有任何内容,请打开 System Preferences -> Extensions 并在“Swiftify for Xcode”旁边打勾。

第 7 步:运行(或重新启动)Xcode 并检查 Editor -> Swiftify 菜单。

第 8 步:新的 Finder 扩展允许您使用右键菜单将文件、文件夹甚至 ZIP 存档与您的项目一起转换:

第 9 步:您还可以使用右键菜单转换来自大多数 macOS 文本编辑器应用程序的代码:

第 10 步:您可以通过 Xcode -> Preferences -> Key Bindings 为任何命令设置快捷方式(键绑定)。
