配置文件

windows下 Sublime python集成开发环境配置

2019-08-01  本文已影响4人  __倔强的贝吉塔

新建python3编译系统,内容如下:

{
    "cmd": ["E:/Program Files (x86)/python3.6/anaconda3/pythonw.exe","-u","$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python",
    "encoding":"cp936"
}

修改Sublime快捷键,设置F5为编译运行快捷键,F7为SublimeREPL:Python的快捷键,这个主要用来解决Sublime input交互问题。(SublimeREPL需要自行安装)

[
    { "keys": ["f5"], "command": "build" },
    { "keys": ["f7"], "caption": "SublimeREPL:Python", 
                      "command": "run_existing_window_command", "args":
                      {
                           "id": "repl_python_run",
                           "file": "config/Python/Main.sublime-menu"
                      } 
    },
]
上一篇下一篇

猜你喜欢

热点阅读