码农的世界python热爱者程序员

Windows系统安装Sublime Text 3 配置Pyth

2018-07-23  本文已影响53人  Python新世界
Windows系统安装Sublime Text 3 配置Python开发环境,萌新第一步

安装阶段:

1.sublime text3的安装:

2.安装Package Control:

3.安装anaconda:


python学习群.png

4.安装SublimeREPL:

5.安装Djaneiro:

配置阶段:

  1. Preferences -> Browse Packages -> SublimeREPL -> config -> python ->打开 Main.sublime-menu -> 找到

{"command": "repl_open",

"caption": "Python - RUN current file",

"id": "repl_python_run",

"mnemonic": "R",

"args": {

"type": "subprocess",

"encoding": "utf8",

"cmd": ["python", "-u", "-i", "$file_basename"],

"cwd": "$file_path",

"syntax": "Packages/Python/Python.tmLanguage",

"external_id": "python",

"extend_env": {"PYTHONIOENCODING": "utf-8"}

}

},

修改其中的 "cmd" 项。

Windows系统安装Sublime Text 3 配置Python开发环境,萌新第一步

Preferences -> Browse Package -> SublimeREPL -> config -> python -> 打开Default.sublime-commands -> 找到

{

"caption": "SublimeREPL: Python - RUN current file",

"command": "run_existing_window_command", "args":

{

"id": "repl_python_run",

"file": "config/Python/Main.sublime-menu"

}

},

并复制到 Preferences -> Key Bindings 中,并在代码中添加想要设置的快捷键,如下:

{

"keys": ["shift+f10"], //修改方括号中的内容,自定义快捷键

"caption": "SublimeREPL: Python - RUN current file",

"command": "run_existing_window_command", "args":

{

"id": "repl_python_run",

"file": "config/Python/Main.sublime-menu"

}

},

上一篇下一篇

猜你喜欢

热点阅读