转载于:https://www.cnblogs.com/jieperhaps/p/10559565.html
方法:
首选项->快捷键设置
填写如下内容
// sublime设置sublimeREPL-python-run current file 快捷键
[
{
"keys": ["ctrl+b"], "command": "repl_open",
"caption": "Python - RUN current file",
"id": "repl_python_run",
"mnemonic": "d",
"args":
{
"type": "subprocess",
"encoding": "utf8",
"cmd": ["C:\\Users\\giova\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe", "-u", "-i", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
}
]
注意:cmd中的路径,修改为你本机python.exe文件路径
保存后,重新启动就可以了
这个两行显示,是在视图–》布局–》行 2 选择的,也可以选择列2
实测可行。
转载于:https://www.cnblogs.com/jieperhaps/p/10559565.html