Sublime text3使用积累

1.colorpicker选择颜色的。

快捷键ctrl+shift+C

2.jsFormat格式化js

快捷键ctrl+alt+f

[
    {
        "keys": ["ctrl+alt+f"], "command": "js_format",
        "context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}]
    }
]

这里是默认的快捷键

也可以设置自己的快捷键

[
    {
        "keys": ["ctrl+alt+1"], "command": "js_format",
        "context": [{"key": "selector", "operator": "equal", "operand": "source.js,source.json"}]
    }
]

这样ctrl+alt+1也有效了。

3.还有一些自带的快捷键功能F12追踪函数很有用。

4.ctrl+kk删除光标之后的行内容

5.格式化html,插件tag

选择需要格式化的文本,ctrl+alt+f就可以格式化了。很实用。



原文地址:https://www.cnblogs.com/jiqing9006/p/3771980.html