Mac上的TextMate安装coffee插件

1. 安装coffeebundle

mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmbundle
 

2. 配置TextMate上的路径,在TextMate -> Perferences -> Advanced -> Shell Variables中,新建一个,点‘+’,取名PATH,后面的值输入

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
 

这样可在TextMate中的coffee文件里,通过command+B来查看编译后的js文件

猜你喜欢

转载自cinic2003.iteye.com/blog/1280776