Sublime个人快捷键自定义

[
  { "keys": ["super+d"], "command": "duplicate_line" },
   { "keys": ["super+l"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
   {
        "keys": ["ctrl+l"],
        "command": "move",
        "args": {
            "by": "characters",
            "forward": true
        }
    },
    {
        "keys": ["ctrl+h"],
        "command": "move",
        "args": {
            "by": "characters",
            "forward": false
        }
    },
    {
        "keys": ["ctrl+k"],
        "command": "move",
        "args": {
            "by": "lines",
            "forward": false
        }
    },
    {
        "keys": ["ctrl+j"],
        "command": "move",
        "args": {
            "by": "lines",
            "forward": true
        }
    },
     //移动光标到行首或行末
    {
        "keys": ["super+ctrl+h"],
        "command": "move_to",
        "args": {
            "to": "bol",
            "extend": false
        }
    }, {
        "keys": ["super+ctrl+l"],
        "command": "move_to",
        "args": {
            "to": "eol",
            "extend": false
        }
    },
    { "keys": ["ctrl+alt+h"], "command": "move", "args": {"by": "subwords", "forward": false} },//向前移动一个单词
    { "keys": ["ctrl+alt+l"], "command": "move", "args": {"by": "subword_ends", "forward": true} },//向前移动一个单词
    { "keys": ["super+1"], "command": "toggle_side_bar" },
    { "keys": ["super+shift+("], "command": "next_view" }, // 下一个标签
    { "keys": ["super+shift+)"], "command": "prev_view" }, // 上一个标签
    { "keys": ["super+shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
    { "keys": ["alt+d"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} },
    { "keys": ["alt+w"], "command": "toggle_comment" },
    { "keys": ["ctrl+d"], "command": "find_under_expand" },
    { "keys": ["super+o"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
    { "keys": ["ctrl+super+up"], "command": "swap_line_up" },
    { "keys": ["ctrl+super+down"], "command": "swap_line_down" },
    { "keys": ["ctrl+n"], "command": "delete", "args": { "forward": true, "characters": true } },
    { "keys": ["super+shift+space"], "command": "build" },
    { "keys": ["super+k"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },//显示每个文件所有方法、变量等

]```
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容