How to customise file type to syntax associations in Sublime Text?

Ivan picture Ivan · Nov 11, 2011 · Viewed 130.7k times · Source

I'd like Sublime 2 editor to treat *.sbt files (to highlight syntax) as Scala language, same as *.scala, but I can't find where to set this up. Do you happen to know?

Answer

TedG picture TedG · Nov 12, 2011

In Sublime Text (confirmed in both v2.x and v3.x) there is a menu command:

View -> Syntax -> Open all with current extension as ...