问题
Can anyone assist with the TextMate Run command? I am not sure how to set the variable and its value in the TextMate in order to Run command + R and get the result of CoffeScript file. Many thanks.
回答1:
After you install the tmbundle, as described in the first answer, in Preference Panel, select the Advanced tab and under TM_PATH add the path to coffee. To find out the path, type:
which coffee
at the command line.
If you installed using Homebrew, you'll get something like this for your path:
/usr/bin:/bin:/Users/me/local/node/bin:/usr/sbin:/sbin:/usr/local/bin
The /usr/local/bin
part is where coffee is located.
回答2:
Install the CoffeeScript bundle:
https://github.com/jashkenas/coffee-script-tmbundle
This will give you syntax highlighting and a lot more, including compilation.
来源:https://stackoverflow.com/questions/6397795/coffeescript-textmate-run-command