点bulid system建立下面文件
{
"cmd":["C:/ProgramData/Anaconda3/python.exe", "-u", "$file"],
"path":"C:/Users/csq/AppData/Local/Programs/Python/Python36-32", // 注意:路径根据自己的python安装路径而定
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
keybind:里面贴上:
[
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{"keys":["f5"], "caption": "SublimeREPL: Python - RUN current file", "command": "run_existing_window_command", "args": {"id": "repl_python_run","file": "config/Python/Main.sublime-menu"} },
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["ctrl+k"], "command": "new_pane", "args": {"move": false} },
{ "keys": ["ctrl+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+r"], "command": "duplicate_line" },
]
这些是我自己设置的快捷键,因为自己更常用
快捷键:
复制到keybind里面
{ "keys" :[ "f5" ], "caption" : "SublimeREPL: Python - RUN current file" , "command" : "run_existing_window_command" , "args" : { "id" : "repl_python_run" , "file" : "config/Python/Main.sublime-menu" } }
|