daaain / Handlebars

Fullest Handlebars.js templating support for Sublime Text 2 / 3. Also drives syntax colouring on Github and in Visual Studio Code. Install from: https://packagecontrol.io/packages/Handlebars.
MIT License
301 stars 48 forks source link

[Sublime Text 3] how to change by default extension from .handlebars to .hbs #72

Open iiison opened 8 years ago

iiison commented 8 years ago

I recently upgraded from ST2 to ST3. I Installed handlebars syntax but by default it is saving my file as .handlebars and I want to save it as .hbs. when I am changing extension manually then it is saving file as abc.hbs.handlebars

daaain commented 8 years ago

That's a very good question, I have no idea! :)

The .handlebars extension is the first one in the list of supported ones, so maybe that could be it: https://github.com/daaain/Handlebars/blob/master/grammars/Handlebars.json#L786

There seems to be a way to override this though: http://stackoverflow.com/a/18675333/21217