Xcode built-in snippets edit

前端 未结 6 1336
既然无缘
既然无缘 2020-12-13 19:56

Is there a way to edit Xcode\'s built-in snippets? There is an edit button, but pressing it doesn\'t seem to allow changing the snippet\'s text.

Any insight is appr

6条回答
  •  爱一瞬间的悲伤
    2020-12-13 20:17

    You can edit system code snippets manually:

    1. Go to this directory: "/Developer/Library/Xcode/PrivatePlugIns".
    2. Show package contents of "IDECodeSnippetLibrary.ideplugin"
    3. Open "Contents/Resources/SystemCodeSnippets.codesnippets" as text file
    4. Edit it

    .codesnippets file is a .plist but some strings entered with CR/LF and cannot be edited by standard plist editor.

提交回复
热议问题