.es6 file extension


How do I configure the javascript-language package to accept .es6 file extension?

Oh, and while we’re at it, how about .cs for coffeescript?

Basically how to bind a file extension to a language?


You can use the file-types package to set up custom file associations.

You should be using .coffee for CoffeeScript though, as .cs clashes with C#.


Bingo! Works like a charm. Thanks!

Agree about .coffee, just an example … I didn’t know c#'s exentsion was .cs, but makes sense.