1.Anaconda3-python3.6配置
{
"encoding": "cp936",
"working_dir": "$file_path",
"shell_cmd": "D:\\ProgramData\\Anaconda3\\python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
2.Anaconda2-python2.7配置
{
"encoding": "cp936",
"working_dir": "$file_path",
"shell_cmd": "D:\\ProgramData\\Anaconda3\\python.exe -u \"$file\"",
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
3.按键绑定-用户
[
{ "keys": ["ctrl+enter"], "command": "build" },
{ "keys": ["ctrl+end"], "command": "exec", "args": {"kill": true} },
{ "keys": ["ctrl+f12"], "command": "toggle_comment", "args": { "block": false } },
{
"keys":["ctrl+r"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]