问题描述
任何人都可以协助使用 TextMate Run 命令吗?我不确定如何在 TextMate 中设置变量及其值,以便运行 command + R 并获取 CoffeScript 文件的结果.非常感谢.
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.
推荐答案
安装 tmbundle 后,如第一个答案中所述,在 Preference Panel 中,选择 Advanced 选项卡并在 TM_PATH 下添加咖啡的路径.要找出路径,请输入:
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
在命令行中.
如果您使用 Homebrew 安装,您的路径会得到类似的结果:
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
/usr/local/bin
部分是咖啡所在的位置.
The /usr/local/bin
part is where coffee is located.
这篇关于CoffeeScript TextMate 运行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!