TextMate toggle comment macro is broken

前端 未结 4 1332
误落风尘
误落风尘 2021-01-02 14:29

My laptop crashed and when it rebooted, \"cmd /\" (toggle comment) was broken. When I try to toggle comments on a line that only contains \"foo\", I get this output in my c

4条回答
  •  星月不相逢
    2021-01-02 14:55

    If you're using ruby 2.0 or you recently upgraded to Mavericks (system ruby in Mavericks is now 2.0), edit abovementioned command and add "-Ku" to the first line, like so: #!/usr/bin/env ruby -Ku

    Worked for me.

提交回复
热议问题