Installation:
1. Ctrl + SHIFT + P
2. Enter the Install package
3. Search: Sublimetmpl
4. Carriage return Installation
Set up:
1. Preference-> Package Settings-Sublimetmpl-> Settings-default
"attr": { "author": "Cray", "email": "[email protected]", "link": "http://example.org", "copyright" : "Copyright (c) 2013-2014, XXXX, Inc. All rights reserved. " }
Add variables that can be used in the template in ${author} ${email} mode.
3. Copy the directory: C:\Users\Administrator\AppData\Roaming\Sublime Text 2\packages\sublimetmpl\templates under the Js.tmpl file to
Table of Contents: C:\Users\Administrator\AppData\Roaming\Sublime Text 2\packages\user\sublimetmpl\templates, the new template will take precedence over this template
3. Open the Js.tmpl file and set the custom template
/** * @${copyright} * @authors ${author} | ${email} * @date ${date} */${1:}$0
New File shortcut key:
Ctrl+alt+h htmlctrl+alt+j javascriptctrl+alt+c cssctrl+alt+p phpctrl+alt+r rubyctrl+alt++shift+p python
Sublime Text Template Plugin Sublimetmpl