为 Xcode 中的所有项目创建代码片段?

Create Code Snippets for All Projects in Xcode?

是否可以拥有我可以创建一次的代码片段,我可以将其用于所有新项目,而不是每次都创建相同的项目?

提前致谢

在 Xcode 中,您创建的代码片段默认可用于所有项目。

来自 Xcode 帮助文章“创建和使用代码片段”,这是创建代码片段的方法:

In the source editor, select the code fragment you want to make into a snippet, then choose Editor > Create Code Snippet.

Alternative, just choose Editor > Create Code Snippet.