[ { "keys": ["ctrl+q"], "command": "" }, /*------------ 复制粘贴等 -------------*/ { "keys": ["ctrl+x"], "command": "" }, { "keys": ["ctrl+c"], "command": "" }, { "keys": ["ctrl+v"], "command": "" }, { "keys": ["ctrl+a"], "command": "" }, { "keys": ["ctrl+s"], "command": "" }, { "keys": ["ctrl+shift+s"], "command": "" }, { "keys": ["ctrl+z"], "command": "" }, { "keys": ["ctrl+shift+z"], "command": "" }, { "keys": ["ctrl+y"], "command": "" }, { "keys": ["ctrl+u"], "command": "" }, { "keys": ["ctrl+shift+u"], "command": "" }, { "keys": ["super+x"], "command": "cut" }, { "keys": ["super+c"], "command": "copy" }, { "keys": ["super+v"], "command": "paste" }, { "keys": ["super+a"], "command": "select_all" }, { "keys": ["super+s"], "command": "save", "args": { "async": true } }, { "keys": ["super+z"], "command": "undo" }, { "keys": ["super+shift+z"], "command": "redo" }, /*------- 打开/关闭文件 -------*/ { "keys": ["ctrl+w"], "command": "" }, { "keys": ["ctrl+w"], "command": "", "context": [ { "key": "group_has_transient_sheet", "operator": "equal", "operand": true } ] }, { "keys": ["ctrl+f4"], "command": "" }, { "keys": ["ctrl+n"], "command": "" }, { "keys": ["ctrl+o"], "command": "" }, { "keys": ["super+w"], "command": "close_file" }, { "keys": ["super+n"], "command": "new_file" }, { "keys": ["super+o"], "command": "prompt_open_file" }, /*------------- 注释 -------------*/ { "keys": ["ctrl+/"], "command": "" }, { "keys": ["ctrl+shift+/"], "command": "" }, { "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+q"], "command": "toggle_comment", "args": { "block": true } }, /*------------- 搜索/替换 -------------*/ { "keys": ["ctrl+f"], "command": "" }, { "keys": ["ctrl+h"], "command": "" }, { "keys": ["super+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, { "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, /*------------- 命令面板 -------------*/ { "keys": ["ctrl+shift+p"], "command": "" }, { "keys": ["super+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} }, /*------------- 编译 -------------*/ { "keys": ["ctrl+b"], "command": "" }, { "keys": ["ctrl+shift+b"], "command": "" }, { "keys": ["ctrl+break"], "command": "" }, { "keys": ["super+b"], "command": "build" }, { "keys": ["super+shift+b"], "command": "build", "args": {"select": true} }, { "keys": ["ctrl+c"], "command": "cancel_build" }, ]