Sublime 设置 eclipse 风格快捷键

Preferences -> Key Bindings -> Default.sublime_ keymap

[
    // editor配置
    { "keys": ["ctrl+v"], "command": "paste_and_indent" },
    { "keys": ["ctrl+shift+v"], "command": "paste" },
    //{ "keys": ["ctrl+shift+x"], "command": "upper_case" },
    //{ "keys": ["ctrl+shift+y"], "command": "lower_case" },
    // 删除整行
    { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
    // 光标移动到指定行
    { "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
    // 快速定位到选中的文字
    { "keys": ["ctrl+k"], "command": "find_under_expand_skip" },
    // 这个命令默认使用的是ctrl+shift+P
    { "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
    // outline
    { "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
    // 当前文件中的关键字(方便快速查找内容)
    { "keys": ["ctrl+alt+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
    // open resource
    { "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
    // 文件内查找/替换
    { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace"} },
    // 全局查找/替换, 在查询结果中双击跳转到匹配位置
    {"keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "find_in_files"} },
    // 复制行
    { "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
    // 移动行
    { "keys": ["alt+up"], "command": "swap_line_up" },
    { "keys": ["alt+down"], "command": "swap_line_down" },
    // plugin配置
    { "keys": ["alt+a"], "command": "alignment" },
    { "keys": ["ctrl+shift+f"], "command": "js_format" }
]

你可能感兴趣的:(Sublime 设置 eclipse 风格快捷键)