shiyanhui / FileHeader

A powerful file templating plugin for Sublime Text
203 stars 75 forks source link

Support ts file #76

Open halink0803 opened 7 years ago

halink0803 commented 7 years ago

I am working with typescript and file header seems do not work with ts file? Can you guys add file header to support ts file or tell me how can I add it by myself?

shiyanhui commented 7 years ago

Just add "ts": "js" to extension_equivalence in your settings. It may looks like:

"extension_equivalence": {
    "blade.php": "html",
    "ts": "js"
}
halink0803 commented 7 years ago

I tried as you said but it does not work. Are you are it's _extensionequivalence ?

justbefree commented 4 years ago

Just add "ts": "js" to extension_equivalence in your settings. It may looks like:

"extension_equivalence": {
    "blade.php": "html",
    "ts": "js"
}

It works , thanks

justbefree commented 4 years ago

Just add "ts": "js" to extension_equivalence in your settings. It may looks like:

"extension_equivalence": {
    "blade.php": "html",
    "ts": "js"
}

But I have a question, Why isn't work if i created a TypeScrpt.tmpl file and put it in /template/header folder? Does that mean I can not create my own template ?

dawindd commented 4 years ago

But I have a question, Why isn't work if i created a TypeScrpt.tmpl file and put it in /template/header folder? Does that mean I can not create my own template ?

I did it for a few custom templates, following this: