I've created my own custom version of the html.sublime-snippet adding in a doctype and some meta tags and saved it in the User directory.
Now, when when I try to trigger my snippet both the default version and my custom version show up as options.
Is there any way to semi-permanently disable the default snippet so only my version is available?
2 Answers
I was bothered by Python's default snippet for @property. I found working solution here. Your would be similar:
- In .config/sublime-text-2/Packages copy the
HTMLfolder to (for example)HTML Customized. - Hose/Edit out the snippets that offend you in
HTML Customized. - Add
HTMLto theignored_packagesentry in the preferences to disable the standardHTMLsnippets.
Without catch!
Someone called marcuso posted this solution on Sublime Text forum. He deserves all glory. (And also Matt York, who mentioned the thread in this comment).
Comments
Options:
- You can change the
tabTriggerof your new snippet - You can change the
tabTriggerof the default snippet You can comment out the
tabTriggerline of the default snippet:<!-- <tabTrigger>html</tabTrigger> -->
The catch: when you update ST I believe it will overwrite any changes made to the default configuration files. So, if you comment out the tabTrigger in the default snippet it will be uncommented after your next upgrade of ST.