美文网首页
sublime经验备忘|sublime插件之SublimeRPE

sublime经验备忘|sublime插件之SublimeRPE

作者: lfpwhy | 来源:发表于2017-05-21 17:14 被阅读0次

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"}
 }
 }```

相关文章

网友评论

      本文标题:sublime经验备忘|sublime插件之SublimeRPE

      本文链接:https://www.haomeiwen.com/subject/rmcvxxtx.html