Skip to content

Instantly share code, notes, and snippets.

@void-main
Last active December 15, 2015 09:09
Show Gist options
  • Save void-main/5235763 to your computer and use it in GitHub Desktop.
Save void-main/5235763 to your computer and use it in GitHub Desktop.
Sample sublime text 2 snippet, just fillin the boilerplate for python file. Select `New Snippet` from `Tools` menu, copy the gist content to the file, save it as `XXXX.sublime-snippet`, and you are all set. For more detailed information, check it out here: `http://docs.sublimetext.info/en/latest/reference/snippets.html` Attention please, the ext…
<snippet>
<content><![CDATA[
#coding=utf-8
def main():
${1:pass}
if __name__ == '__main__':
main()
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>boilerplate</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.python</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment