sublime text新版本的键盘快捷键

问题描述 投票:0回答:1

我有这段代码来创建一个在sublimeREPL中运行当前文件的快捷方式:

{
    "keys": ["ctrl+alt+b"],
    "command": "run_existing_window_command",
    "args": {
        "id": "repl_python_run",
        "file": "config/Python/Main.sublime-menu"
    }
}

但是使用sublime的新版本,它不起作用。

怎么了?

python python-3.x sublimetext3 sublimerepl
1个回答
0
投票

这是代码:

{
  "keys": ["ctrl+alt+b"],
  "command": "repl_open",
  "args": {
    "cmd": ["python", "-u", "-i", "$file_basename"],
    "cwd": "$file_path",
    "encoding": "utf8",
    "extend_env": {"PYTHONIOENCODING": "utf-8"},
    "external_id": "python",
    "syntax": "Packages/Python/Python.tmLanguage",
    "type": "subprocess"
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.