sublime的插件

记录一下常用的插件:

1. htmlpretty

用于HTML、CSS、JS的格式化,以方便阅读代码。插件全名是HTML-CSS-JS Pretty。安装后使用方法是:

打开一个HTML/CSS/JS文件,windows使用ctrl + shift + h执行格式化。

该插件依赖于nodejs

2.Emmet

用于快捷输入代码。例如在html文件中,输入:table>(thead>tr>th*5)+(tbody>(tr>td*5)*3),再使用tab键即可快捷输入以下内容:

<table>
        <thead>
            <tr>
                <th></th>
                <th></th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td></td>
                <td></td>
                <td></td>
            </tr>
        </tbody>
    </table>

3.jshint

  用于js的语法检测,依赖于JSHint插件。因此,需要首先安装该插件。

  在linux/windows上,激活的快捷键是:

    control-j or alt-j in Linux/Windows or Tools/Contextual menus or the Command Palette
    F4 jump to next error row/column
    shift-F4 jump to previous error row-column

Note: The control-j/alt-j shortcut changes the Build System on the current file to JSHint, then Builds to run JSHint on the file and output any errors for jumping to within the file. You could alternatively set the Build System to Automatic and command-b/control-b/F7, but only on files that end with .js.

 4. Saas

  Saas/SCSS脚本语法高亮插件

 5. HTML5

  添加HTML5语法模式和快捷输入

6. jQuery

  经常用jQuery插件,不妨安装这个插件来提高输入代码的效率。

转载于:https://www.cnblogs.com/javawer/p/4212516.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值