Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Brainstorm] Create snippets from gist #9

Open
Bunn opened this issue Mar 16, 2017 · 0 comments
Open

[Brainstorm] Create snippets from gist #9

Bunn opened this issue Mar 16, 2017 · 0 comments

Comments

@Bunn
Copy link
Owner

Bunn commented Mar 16, 2017

Xcode save the snippets on this path
~/Library/Developer/Xcode/UserData/CodeSnippets

And this is a snippet file format:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>IDECodeSnippetCompletionScopes</key>
    <array>
        <string>CodeBlock</string>
    </array>
    <key>IDECodeSnippetContents</key>
    <string>       //CODE GOES HERE
</string>
    <key>IDECodeSnippetIdentifier</key>
    <string>5B59E4B8-2705-48CF-8104-F2EF4C6F7EE4</string>
    <key>IDECodeSnippetLanguage</key>
    <string>Xcode.SourceCodeLanguage.Objective-C</string>
    <key>IDECodeSnippetTitle</key>
    <string>SPIPPET_TITLE</string>
    <key>IDECodeSnippetUserSnippet</key>
    <true/>
    <key>IDECodeSnippetVersion</key>
    <integer>0</integer>
</dict>
</plist>

The app could have a way for the user to select gists from an UI or maybe having some special "tag" on the gists to list as snippets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant