Reputation: 853
I am trying to learn coffeescript. I installed the Sublime package 'BetterCoffeeScript', and I am seeing the syntax highlighting, but I can't figure out how to view my coffeescript as compiled javascript. When I go to the command pallet and click Coffee: Display JS, it just generates a new blank file. How do I get this to show the compiled JS? Also, what is the first key that is shown for the keyboard shortcut? I attached a screenshot.
Upvotes: 1
Views: 127
Reputation: 853
Answer taken from https://github.com/aponxi/sublime-better-coffeescript/issues/142
In terminal, run which coffee to see where coffee is installed.
If it's /usr/bin/coffee
, you should be fine.
If it's /usr/local/bin/coffee
(or anything else), go to Sublime, Preferences > Package Settings > Better CoffeeScript > Settings - User
Add "binDir": "/usr/local/bin"
(or whatever which said it was) there.
Upvotes: 1