插件网址--- https://github.com/wuub/SublimeREPL
插件文档--- https://sublimerepl.readthedocs.io/en/latest/
进行相应的快捷键绑定-----
打开key bindings ----
[
{
// 运行py文件
"keys": ["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"}
},
{
// 调试文件
"keys": ["f8"],
"caption": "SublimeREPL: Python - PDB current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_pdb",
"file": "config/Python/Main.sublime-menu"}
},
{
// 设置ipython的 环境
"keys": ["f4"],
"caption": "SublimeREPL: Python - IPython",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_ipython",
"file": "config/Python/Main.sublime-menu"}
},
{
// 打开 shell 环境
"keys": ["f1"],
"caption": "SublimeREPL: Shell",
"command": "run_existing_window_command",
"args": {
"id": "repl_shell",
"file": "config/shell/Main.sublime-menu"}
},
]
加入这些代码即可