CoffeeScript syntax highlighting not showing up in

2019-01-19 11:10发布

问题:

This question already has an answer here:

  • Wrong default syntax highlighting in sublime text 3 1 answer

I needed to do some coding in CoffeeScript, so I found https://github.com/Xavura/CoffeeScript-Sublime-Plugin and I installed it using Package Control. I restarted Sublime Text and everything I type in my .js.coffee file is still plain white. What am I doing wrong here?

回答1:

Open a .coffee file, then go to View -> Syntax -> Open all with current extension as... -> CoffeeScript. Now, any time you open a CoffeeScript file it should have the correct syntax highlighting.