Compile CoffeeScript on Save?

前端 未结 7 1157
花落未央
花落未央 2020-12-24 01:11

Is there anyway to easily compile CoffeeScript on save? I\'m using TextMate or Sublime Text 2.

7条回答
  •  余生分开走
    2020-12-24 01:34

    The most straightforward solution with Sublime, is to install the Sublime package called Better Coffeescript (preferences --> package control --> install package...), and then make sure that its configuration includes "compileOnSave": true (preferences --> package settings --> Better Coffeescript...). Then restart Sublime.

    For Sublime, anything else is not enough or too much extra components. Just came here after upgrading to Sublime 3, and it works like charm for Sublime 3 (as it did for Sublime 2, I just forgot about it at first).

提交回复
热议问题