else/SublimeSnippets/ifmain.sublime-snippet

13 lines
397 B
Text
Raw Normal View History

2019-04-17 01:39:00 +00:00
<snippet>
<content><![CDATA[
if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:]))
]]></content>
<tabTrigger>ifmain</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>