【sublime】CoffeeScript plugin —— highlight, preview, compile, go to definition and so on .

本文介绍如何在Sublime Text中安装并使用CoffeeScript相关插件,包括语法高亮、代码自动补全、编译等功能。通过快捷键可以方便地运行Cake任务、编译检查及预览编译后的JavaScript代码。
        All these plugins you can install by package controller.
 

1. CoffeeScript

        It provide syntax  highlight, code auto compelement, compile coffee into javascript, recompile and so on.
        Shotcuts:
      alt+shift+t - Run a Cake task
      alt+shift+r - Run some CoffeeScript (puts/print is available for output)
      alt+shift+s - Run a syntax check
      alt+shift+c - Compile a file
      alt+shift+d - Display compiled JavaScript
      alt+shift+l - Display lexer tokens
      alt+shift+n - Display parser nodes
      alt+shift+w - Toggle watch mode
      alt+shift+p - Toggle output panel
        For example, create a "aaa.coffee" file, and press "alt+shift+c",it will auto create a " aaa.js" file. And I found a very helpfull function, after it compile, the html file will auto refrash, it's so awsome.
 

2.  CoffeeCompile

        It can preview the compiled javascript code. When meets error, it can tell which line and error for you.Default shotcut is "ctrl+shift+c". Because it has some shortcut conflict in my sublilme, so I change the shorcut.
        The way to change shortcuts is very easy. Preferences -> Packeage Settings -> your plugin -> Key Bindings - User.
 
]        I have change it into "ctrl+shift+m".
 
        You also can use right click.

 
        Here is the demo. You can preview the compiled javascript codes in console panel.
 

3. CoffeeComplete Plus 

        Provide autocomplete, goto definition(ctrl+alt+d or ctrl+alt+left click).
 

≡≡≡≡≡≡≡≡≡≡★ From Laker's blog ★≡≡≡≡≡≡≡≡≡≡

¤ ╭⌒╮☀Coding and changing~☀ ╭╭ ⌒╮

✪Fighting and insisting~✪

转载于:https://www.cnblogs.com/younglaker/p/3310120.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值