Set default syntax for erb files


I want to use HTML(Rails) over HTML(Ruby - erb), but haven’t found an effective way of doing this.
Right now I’m using ctrl + shift + L every time I open up a file. I also tried using the file-types package, but couldn’t get it to override the default.

Has anyone been able to figure this out?

I’d be the happiest if someone has a solution! Thanks!


You should be able to accomplish this by editing your file as outlined in Set HTML syntax on file.html.js: