1、sublime经验备忘|SublimeRPEL安装
- ctrl+shift+p–>打开Package Control
- 输入ip–)选择Package Control:install package
- 输入:SublimeRPEL 找到插件点击安装
2、sublime经验备忘|SublimeRPEL之python环境设置
- 首选项–>package settings–>SublimeRPEL–>settings user
- 设置系统环境,可以解决sublimeRPEL报错“系统找不到指定的文件”
{ "default_extend_env": {"PATH": "{PATH};Packages/Python36"}, //python路径 }
3、sublime经验备忘|快捷键设置
- SublimeRPEL快捷键设置
- 首选项–>快捷键设置
- 在大括号里加入下面代码,注意:要做上面“}”后面加上“,”号
"command": "repl_open",
"caption": "Python - RUN current file",
"id": "repl_python_run",
"mnemonic": "R",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["python", "-u", "$file_basename"],
"cwd": "$file_path",
"syntax": "Packages/Python/Python.tmLanguage",
"external_id": "python",
"extend_env": {"PYTHONIOENCODING": "utf-8"}
}
}```