Home Download Buy Blog Forum Support

Default Snippet template

Default Snippet template

Postby BradDenver on Mon Sep 24, 2012 1:20 am

Hi,

Does anyone know how to edit the default snippet template to include the description tag?

I would like to change it from:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
<!-- 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>

to:
<snippet>
<content><![CDATA[
Hello, ${1:this} is a ${2:snippet}.
]]></content>
<!-- 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> -->
<!-- Optional: Description to show in the menu -->
<description>My Fancy Snippet</description>
</snippet>
BradDenver
 
Posts: 1
Joined: Mon Sep 24, 2012 1:14 am

Re: Default Snippet template

Postby pickledegg on Mon Nov 12, 2012 8:46 am

I'm looking for this answer too, I'll let you know when I find it :)
pickledegg
 
Posts: 5
Joined: Tue Oct 30, 2012 11:02 am

Re: Default Snippet template

Postby AGS on Mon Nov 12, 2012 11:18 pm

The default snippet template is located:

Code: Select all
~/Library/Application Support/Sublime Text 2/Packages/Default/new_templates.py
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 8 guests

cron