1、修改Main.sublime-menu文件
Users/xxx/Library/Application\ Support/Sublime\ Text\3/Packages/SublimeREPL/config/Python/Main.sublime-menu
2、修改cmd命令,以下部位全部python改成python3
"cmd": ["python3", "-i", "-u"],
"cmd": ["python3", "-i", "-u", "-m", "pdb", "$file_basename"],
"cmd": ["python3", "-u", "$file_basename"],
"cmd": {
"osx": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"linux": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"],
"windows": ["python3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"]
3、确实成功了
4、如何在sublime3为SublimeREPL->Python->Python-RUN current file设置自定义快捷键。打开快捷设置,添加如下代码:
[
{
"keys": ["shift+enter"],
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run", //要加_run
"file": "config/Python/Main.sublime-menu"
}
}
]
原创文章(本站视频密码:66668888),作者:xujunzju,如若转载,请注明出处:https://zyicu.cn/?p=5748